(左边微信小程序,右边支付宝小程序)
1、文件后缀名
wxml------axml
wxss------acss
2、wxml中
wx:------a:
bind------on(改成驼峰式命名,如bindtap------onTap)
3、js中
wx:------my:
缓存的存取方式不同
4、json中
enablePullDownRefresh------pullRefresh
5、app.json中
window属性不同
6、API差异(目前遇到的)
模态窗wx.showModal------my.confirm
my.showToast的参数title改为content
my.chooseImage回调成功返回的tempFilePaths改为apFilePaths
支付宝没有getSetting
参考链接:
https://blog.csdn.net/weixin_40687883/article/details/84287946?depth_1-utm_source=distribute.pc_relevant_right.none-task&utm_source=distribute.pc_relevant_right.none-task