开发者社区
社区提问意见反馈
开发者钉组织
扫描二维码
加入支付宝开发者钉组织
native 渲染
性能与优化
小程序全局配置
小程序页面
axml
sjs 语法参考
事件系统
自定义组件
基础能力
基础库
基础库更新日志
开发 > 框架 > native 渲染 > 差异和兼容性
收藏
订阅更新
我的文档
设置
该文档汇总了 native 渲染引擎与 webview 渲染引擎现存的差异及相应的兼容性判断方式,并将持续更新。开发者也可以查阅各接口的详细文档了解相关区别。
框架
小程序页面
页面运行机制
方法
native 渲染引擎兼容性
可用性判断
createintersectionobserver
暂不支持
my.caniuse('page.createintersectionobserver')
createmediaqueryobserver
暂不支持
my.caniuse('page.createmediaqueryobserver')
自定义组件
组件对象
方法
native 渲染引擎兼容性
可用性判断
createintersectionobserver
暂不支持
my.caniuse('component.createintersectionobserver')
createmediaqueryobserver
暂不支持
my.caniuse('component.createmediaqueryobserver')
sjs 语法参考
sjs 响应事件
参数
方法
native 渲染引擎兼容性
可用性判断
event
event.preventdefault
暂不支持
my.caniuse('sjs.event.preventdefault')
自定义组件/页面 descriptor 描述对象
selectcomponent
暂不支持
my.caniuse('sjs.event.component.selectcomponent')
selectallcomponents
暂不支持
my.caniuse('sjs.event.component.selectallcomponents')
selectownercomponent
暂不支持
my.caniuse('sjs.event.component.selectownercomponent')
requestanimationframe
暂不支持
my.caniuse('sjs.event.component.requestanimationframe')
cancelanimationframe
暂不支持
my.caniuse('sjs.event.component.cancelanimationframe')
基础组件 descriptor
描述对象
getcomputedstyle
暂不支持
my.caniuse('sjs.event.element.getcomputedstyle')
getboundingclientrect
暂不支持
my.caniuse('sjs.event.element.getboundingclientrect')
getdomproperty
暂不支持
my.caniuse('sjs.event.element.getdomproperty')
setdomproperty
暂不支持
my.caniuse('sjs.event.element.setdomproperty')
组件
组件名称
属性/事件
native 渲染引擎兼容性
可用性判断
swiper
previous-margin
基础库 2.9.7 支持
android 暂不支持
my.caniuse('swiper.previous-margin')
next-margin
基础库 2.9.7 支持
android 暂不支持
my.caniuse('swiper.next-margin')
ontransition
暂不支持
my.caniuse('swiper.ontransition')
onanimationend
基础库 2.9.23
客户端 10.5.76 开始支持
my.caniuse('swiper.onanimationend')
scroll-view
scroll-into-view
基础库 2.9.23
客户端 10.5.76 开始支持
my.caniuse('scroll-view.scroll-into-view')
cover-view
-
暂不支持
my.caniuse('cover-view')
cover-image
-
暂不支持
my.caniuse('cover-image')
match-media
-
暂不支持
my.caniuse('match-media')
movable-view
-
暂不支持
my.caniuse('movable-view')
movable-area
-
暂不支持
my.caniuse('movable-area')
page-container
-
暂不支持
my.caniuse('page-container')
share-element
-
暂不支持
my.caniuse('share-element')
root-portal
-
暂不支持
my.caniuse('root-portal')
progress
-
暂不支持
my.caniuse('progress')
rich-text
-
暂不支持
my.caniuse('rich-text')
input
-
基础库 2.9.7 开始支持
my.caniuse('input')
type
客户端 10.5.56 开始支持以下类型
number
idcard
digit
numberpad
digitpad
idcardpad
my.caniuse('input.type.number')
my.caniuse('input.type.idcard')
my.caniuse('input.type.digit')
my.caniuse('input.type.numberpad')
my.caniuse('input.type.digitpad')
my.caniuse('input.type.idcardpad')
random-number
客户端 10.5.56 开始支持
my.caniuse('input.random-number')
always-system
暂不支持
my.caniuse('input.always-system')
textarea
-
暂不支持
my.caniuse('textarea')
slider
-
暂不支持
my.caniuse('slider')
picker-view
-
暂不支持
my.caniuse('picker-view')
picker-view-column
-
暂不支持
my.caniuse('picker-view-column')
picker
-
暂不支持
my.caniuse('picker')
video
floating-mode
暂不支持
my.caniuse('video.floating-mode')
canvas
-
基础库 2.9.7
客户端 10.5.56 开始支持
my.caniuse('canvas')
web-view
-
基础库 2.9.17
客户端 10.5.70 开始支持
my.caniuse('web-view')
lifestyle
-
暂不支持
my.caniuse('lifestyle')
contact-button
-
暂不支持
my.caniuse('contact-button')
error-view
-
暂不支持
my.caniuse('error-view')
join-group-chat
-
暂不支持
my.caniuse('join-group-chat')
subscribe-message
-
暂不支持
my.caniuse('subscribe-message')
page-meta
scroll-duration
暂不支持
my.caniuse('page-meta.scroll-duration')
api
名称
参数
native 渲染引擎兼容性
可用性判断
my.createintersectionobserver
-
暂不支持
my.caniuse('createintersectionobserver')
my.createwebviewcontext
-
暂不支持
my.caniuse('createwebviewcontext')
my.hidekeyboard
-
基础库 2.9.53 客户端 10.6.30 开始支持
my.caniuse('hidekeyboard')
my.createcanvascontext
-
基础库 2.9.7 客户端 10.5.56 开始支持
my.caniuse('createcanvascontext')
my.canvastotempfilepath
-
基础库 2.9.7 客户端 10.5.56 开始支持
my.caniuse('canvastotempfilepath')
my.createselectorquery
-
仅支持严格选择器语法 (选择范围仅当前页面的 .axml 中定义的节点。)
-
my.loadfontface
-
仅支持 ttf 字体格式
-
desc
暂不支持
my.caniuse('loadfontface.object.desc')
my.pagescrollto
duration
暂不支持
my.caniuse('pagescrollto.object.duration')
内容没有解决您的问题?您还可以前往 或 寻求帮助
凯发k8官方网娱乐官方 copyright © 支付宝(杭州)信息技术有限公司  | icp证浙b2-20160559
该文档对你是否有帮助?
当前页面目录
网站地图