代码://获取input信息 inpuKeyword:function(e){ var keyword = e.detail.value; keyword = keyword.replace(/(^\s+)|(\s+$)/g,""); if(keyword==""){ this.getTerminalList(); if(this.data.refreshIconShow == "hidden"){ this.setData({ refreshIconShow: "show" }); } }else{ if(this.data.refreshIconShow == "show"){ this.setData({ refreshIconShow: "hidden" }); } } this.data.keyword = keyword; },
本文网址:http://www.91bianli.com/kaifazhinan/62228.html