Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
minsung
2020-04-24 08:02:33 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
35848a5753f2b2ecdadfb999d68858c34442faa8
35848a57
1 parent
e9b337d2
using fetch api
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
front/web/ex/fetch.html
front/web/ex/fetch.html
View file @
35848a5
...
...
@@ -2,17 +2,20 @@
<html>
<body>
<article>
</article>
<input
type=
"button"
value=
"fetch"
onclick=
"
/*fetch('css').then(function(response){
/*
fetch('css').then(function(response){
response.text().then(function(text){
alert(text);
})
})
*/
fetch('html');
function callbackme(){
console.log('response end');
}
fetch('html').then(callbackme); //
console.log(1);
console.log(2);
"
>
</body>
</html>
...
...
Please
register
or
login
to post a comment