1
0
mirror of https://gitee.com/bookshelfplus/bookshelfplus synced 2025-09-12 19:51:39 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

前端添加渲染表格和获取Url参数相关代码,更新search搜索页

This commit is contained in:
2022-03-15 12:40:49 +08:00
parent 39c56e36d4
commit ae26ecc372
5 changed files with 192 additions and 4 deletions

View File

@@ -45,8 +45,11 @@
// 搜索按钮点击事件
$('#searchButton').click(function () {
if ($('#searchInput').val() !== "") {
location.href = "search?keyword=" + encodeURIComponent($('#searchInput').val());
var searchBoxValue = $('#searchInput').val();
if (!searchBoxValue || searchBoxValue.trim() == "") {
alert("请输入搜索内容");
return;
}
window.location.href = "./search?keyword=" + encodeURIComponent(searchBoxValue);
});
</script>