You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
534 B
31 lines
534 B
6 months ago
|
Page({
|
||
|
data:{
|
||
|
message:"Hello world",
|
||
|
num:1,
|
||
|
condition:true,
|
||
|
count:46,
|
||
|
true:true, //111
|
||
|
hidden:false
|
||
|
},
|
||
|
|
||
|
compare:function(e){
|
||
|
// console.log("比较对象被点击了") //测试是否绑定成功
|
||
|
console.log(e)
|
||
|
},
|
||
|
|
||
|
viewtap:function(e){
|
||
|
console.log(e.target.id+'-'+e.currentTarget.id)
|
||
|
},
|
||
|
test(){
|
||
|
console.log('test()函数执行了')
|
||
|
},
|
||
|
onLoad(){
|
||
|
console.log(this.data.num)
|
||
|
this.test()
|
||
|
},
|
||
|
changeText(){
|
||
|
this.setData({
|
||
|
message:'Hello Mayday!'
|
||
|
})
|
||
|
},
|
||
|
})
|