Page({
data: {
username: '1507010425',
password: '160014'
},
inputzh: function (e) {
this.setData({
username: e.detail.value
})
console.log(username);
},
(inputzh是input下的bindinput方法)
WAService.js:3 thirdScriptError
cc is not defined;at pages/login/login page lifeCycleMethod onLoad function
ReferenceError: cc is not defined
你贴的代码跟报错不是同一个地方
贴错了,不过报的错误也是说变量 在input 这个function 里面not defined,不清楚是什么原因