minsung

using fetch api

......@@ -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>
......