1
0
mirror of https://gitee.com/bookshelfplus/bookshelfplus synced 2025-09-16 23:22:20 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

用户后台 我的收藏功能完成

This commit is contained in:
2022-04-07 11:32:34 +08:00
parent af88f65679
commit 049f9d85d5
7 changed files with 115 additions and 18 deletions

View File

@@ -1,8 +1,18 @@
<p>
<a href="<%= pageUrl %>detail">添加书籍</a>
</p>
<input id="searchInput" type="text" />
<input id="searchButton" type="button" value="搜索" />
<!-- 搜索书籍 -->
<script>
$("#searchButton").click(function () {
search({
tableElementId: "book-table",
searchText: $("#searchInput").val(),
categoryId: null
});
});
function search({ tableElementId = "", searchText = "", categoryId = 0 }) {
getRequest("/book/search", { bookName: searchText, categoryId: categoryId })
.then(function (responseData) {