未读消息 : 忽略
查看全部
微信小程序获取data数据的方法:
1、首先用微信开发者工具打开项目。
2、在JS文件添加获取data数据的函数方法,具体代码如下所示:
page({ data:{name:"test"}, showData:function(){ var text=this.data.name } })
page({
data:{name:"test"},
showData:function(){
var text=this.data.name
}
})
在线客服
在线客服服务时间:9:00-18:00
客服热线
198991158157*24小时客服服务热线
关注微信