Archived
删除历史版本, 初始化仓库
This commit is contained in:
37 files changed
+1773
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 66 KiB |
@@ -0,0 +1,15 @@
|
||||
.intro {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.head {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.example {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
a {
|
||||
color: green;
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user