first commit

This commit is contained in:
编码猿
2024-09-27 01:15:04 +08:00
commit 89004b22d2
47 changed files with 4871 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
class recommend {
constructor() {
this.getRecommendFeeds();
}
getRecommendFeeds() {
this.Http("/RecommendFeeds", {
photoId: location.search.split("=")[1]
}, res => {
let { list } = res;
console.log(list);
})
}
Http(URL, params, callback) {
$.ajax({
url: `http://127.0.0.1:8090/api${URL}`,
type: 'GET',
data: params,
success: (res) => {
callback(res)
}
})
}
}
new recommend();