XMLHttpRequest と似たもので、より強力で柔軟な操作が可能。
まだ実験段階の機能で、複数のブラウザで開発中の状態にあります。
caniuse: http://caniuse.com/#search=fetch
Service WorkersではXMLHttpRequestは使えないため、fetch APIが使わています。
Service Workers … ブラウザが Web ページとは別にバックグラウンドで実行するスクリプト。Web Pushなど)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var i = 1; | |
function log(){ | |
console.log(i); | |
i++; | |
if(i > 100){ | |
return false; | |
} | |
log(); | |
} | |
log(); |
http://qiita.com/umamichi/items/6ce4f46c1458e89c4cfc
・クロスプラットフォーム型の実行フレームワーク
👉 Mac、Windows、Linux上で動く
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ npm i electron -g | |
$ electron |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- index.html --> | |
<html> | |
<head> | |
<title>github pages test</title> | |
</head> | |
<body> | |
<h1>github pages test</h1> | |
</body> | |
</html> |