mirror of
https://github.com/caojiezi2003/Snavigation.git
synced 2024-11-23 10:59:46 +00:00
搜索框为空时阻止搜索
This commit is contained in:
parent
6f48c6ed2d
commit
35ba36660a
@ -143,8 +143,10 @@ $(window).keydown(function (e) {
|
||||
//点击搜索按钮
|
||||
$(".sou-button").click(function () {
|
||||
if ($("body").attr("class") === "onsearch") {
|
||||
if ($(".wd").val() != "") {
|
||||
$("#search-submit").click();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
//控制台输出
|
||||
|
Loading…
Reference in New Issue
Block a user