使用的weui的一个搜索框架,给他的取消按钮绑定一个,总是无法执行。
发现当input blur之后,取消按钮就为display:none;
如果放到input blur中会影戏其他元素所以不考虑。
我该如何解决,这个算weui的bug吗
$(".weui_search_cancel").click(function() {
....
});
http://lihongxun945.github.io/jquery-weui/dist/demos/searchbar.html
document.getElementById('search_cancel').addEventListener('mousedown', function(e){console.log(e)})