<div class="content-group">
//或者直接返回字符串,光标在最后边 //return value.replace(/11/g,},bindHideKeyboard:function(e){ if(e.detail.value === "123"){ //收起键盘 wx.hideKeyboard(); } } })