添加了js静态文件

This commit is contained in:
MarkusJoe
2022-04-14 22:20:50 +08:00
parent dd20cc9da7
commit f0dd72d350
1 file changed
+10
+10
View File
@@ -0,0 +1,10 @@
function request_async(){
// 使用fetch()函数进行异步请求如果服务端响应速度极慢则不会阻塞页面
fetch('/api/v1/test').then(
response => response.text()
).then(
text => {
document.getElementById('fast_test_example_text').innerText = text
}
)
}