Files
2024-09-27 02:06:13 +08:00

25 lines
402 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

class Search {
constructor() {
this.page = 1;
this.getSearch();
}
// TODO 实现 列表页面 和 点击进入详情(主要套个a标签)
// 和 滚动加载数据
getSearch() {
$(".ser").onclick = async () => {
let res = await indexServe.search({
page: this.page,
q: $(".caipu").value
});
console.log(res)
}
}
}
new Search();