mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-16 23:22:20 +08:00
完成书名搜索功能
This commit is contained in:
@@ -48,8 +48,9 @@
|
||||
$('#searchButton').click(function () {
|
||||
var searchBoxValue = $('#searchInput').val();
|
||||
if (!searchBoxValue || searchBoxValue.trim() == "") {
|
||||
alert("请输入搜索内容");
|
||||
return;
|
||||
// alert("请输入搜索内容");
|
||||
// return;
|
||||
window.location.href = "./search";
|
||||
}
|
||||
window.location.href = "./search?keyword=" + encodeURIComponent(searchBoxValue.trim());
|
||||
});
|
||||
|
Reference in New Issue
Block a user