用【input】输入框内容做为判断条件的问题?
提一个微信小程序的菜鸟问题我用【input】输入框内容,例如 receiveText 做为判断条件执行一个跳转,结果提示未发现 receiveText 代码如下:if (receiveText == ‘000’) {
that.setData({ motto: ‘KZ1BD079@’ }) that.XSJZCX() //指向写数据子程}
不加if (receiveText == ‘000’) {} 程序执行正常,请各位大神赐教。谢谢