25 lines
584 B
JavaScript
25 lines
584 B
JavaScript
class mechanism {
|
|
constructor() {
|
|
footer()
|
|
this.institutions();
|
|
}
|
|
|
|
async institutions() {
|
|
let insti = await indexserve.mechanism()
|
|
console.log(insti.result)
|
|
insti.result.forEach((v) => {
|
|
console.log(v)
|
|
$(".content").html(`
|
|
<li>
|
|
<a href="./Institutiondetails.html?id=${v.id}&page=${v.page}&title=${v.title}">
|
|
<p>${v.title}</p>
|
|
<p>${v.id}套</p>
|
|
</a>
|
|
</li>
|
|
`);
|
|
})
|
|
|
|
}
|
|
}
|
|
|
|
new mechanism() |