You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
365 B
8 lines
365 B
2 months ago
|
// 发送请求到后端获取弹幕总数
|
||
|
fetch('/barrage_count')
|
||
|
.then(response => response.json())
|
||
|
.then(data => {
|
||
|
// 获取行数并更新到前端
|
||
|
document.querySelector('#barrage_count h1').textContent = data.row_count;
|
||
|
})
|
||
|
.catch(error => console.error('Error:', error));
|