Commit 67fc237f by 肖康

搜索新增enter 功能

parent 4a1b0f1b
Showing with 6 additions and 0 deletions
...@@ -53,6 +53,12 @@ define('mallUi', ['tool', 'liexin_pop'], function (require, exports, module) { ...@@ -53,6 +53,12 @@ define('mallUi', ['tool', 'liexin_pop'], function (require, exports, module) {
} }
window.location.href = "/search?keyword=" + val_ window.location.href = "/search?keyword=" + val_
}) })
$(".mallsearchvalx").keydown(function (e) { //给输入框绑定按键事件
var e = e || event;
if (e.keyCode == 13) {
$(".mallsearchbtnx").click()
}
});
/**上面官网商城通用**/ /**上面官网商城通用**/
//官网 //官网
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment