<input id="myInput" bindchange="bindChange" /> <checkbox id="myCheckbox" bindchange="bindChange" /> bindChange: function(e) { var id = e.currentTarget.id; // 获取当前表单元素Id var input = e.detail.value; // 获取当前表单元素输入框内容 if(input) { // 不为空 } } 参考官方文档:https://mp.weixin.qq.com/debu...
参考官方文档:https://mp.weixin.qq.com/debu...