chakan:function(e){
getnowpassword(e)
/* this.gotodocheck()
if(this.docheck())
{
var index=e.currentTarget.dataset.index;
var time=this.data.list[index].time;
var title=this.data.list[index].title;
var xiangxi=this.data.list[index].xiangxi;
this.setData({
hidder_all:true,
hidder_edit:true,
hidder_chakan:false,
hidder_password:true,
hidder_docheck:true,
chakan_time:time,
chakan_title:title,
chakan_xiangxi:xiangxi
})
}
else{
this.setData({
hidder_all:false,
hidder_edit:true,
hidder_chakan:true,
hidder_password:true,
hidder_docheck:true,
nowpassword:''
})
} */
},
这样能跑,但报错Cannot read property ‘getnowpassword’ of undefined
改成这个后
this.getnowpassword(e)
函数运行,但函数里的
this.setData({
hidder_all:true,
hidder_edit:true,
hidder_chakan:true,
hidder_password:true,
hidder_docheck:false
});
这一部分被跳过
求解