http://www.betterpixels.co.uk/projects/2015/05/09/mock-up-your-rest-api-with-json-server/
fetch('http://localhost:3000/tasks/')
.then(function(response) {
return response.json()
}).then(function(json) {
console.log('parsed json: ', json)
}).catch(function(ex) {
console.log('parsing failed: ', ex)
});
fetch('http://localhost:3000/tasks/', {
method: 'post',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"title": "Add a blogpost about Angular2",
"dueDate": "2015-05-23T18:25:43.511Z",
"done": false
})
}).then(function(response) {
return response.json()
}).then(function(json) {
console.log('parsed json: ', json)
}).catch(function(ex) {
console.log('parsing failed: ', ex)
});
https://gist.github.com/xgqfrms-GitHub/88a8ea67005f76146a1a99f7737d80df
HAR 文件 (.har)
HAR 分析器
https://toolbox.googleapps.com/apps/har_analyzer/
https://toolbox.googleapps.com/apps/browserinfo/
G Suite 工具箱
https://toolbox.googleapps.com/apps/main/
日志分析器
https://toolbox.googleapps.com/apps/loganalyzer/
日志分析器 2
https://toolbox.googleapps.com/apps/loggershark/
HAR Viewer
http://www.softwareishard.com/blog/har-viewer/
Yarn & Google’s HAR Analyzer / HAR Viewer
https://yarnpkg.com/zh-Hans/docs/cli/install