微信小程序搜索,微信小程序使用键盘搜索功能
实现微信小程序的键盘搜索功能时候,需要有三个关键属性:1、name=‘search’;//search内容随便写2、bindconfirm='shop_search_function';//这个变量是js函数3、confirm-type='search';//设置右下角文字完整例子如下:index.wxmlinputclass='shop_search_input'name="search"bindconfirm='shop_search_function'type='text'confirm-type='search'placeholder="搜索"/index.jsPage({shop_search_function:function(e){varvalue=e.detail.value;console.log("-------"+value);}})参考链接:1、2、
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。

