//index.js //获取应用实例 //pages文件夹下的index.js const app = getApp() Page({ data: { motto: 'Hello World', marker: 'By 小明', } })index.wxml<!--index.
2018-11-17评论:0访问次数:193
//index.js//获取应用实例const app = getApp()Page({data: {motto: '欢迎你',company:'科锐公司',userInfo: {},hasUserInfo: false,canIUse: wx.canIUse('button.open-type.getUserInfo')},//事件处理函数bind
2019-02-15评论:0访问次数:445