data: {
//输入框内容
searchinput: null
},
/**
* 监听输入框
*/
bindkeyinput:function(e){
var that = this;
that.setData()
{
searchinput: e.detail.value
}
},
报setData accepts an Object rather than some Undefined,断点的时候有value值
微信小程序开发问题解答
微信小程序开发者回答:
bindkeyinput (e) {
微信小程序开发者回答:
that.setData({ searchinput: e.detail.value
})
本文网址:http://www.91bianli.com/kaifazhinan/78909.html