Fetchwindow.fetch 的 JavaScript polyfill
Fetch 是 window.fetch 的 JavaScript polyfill。
全局 fetch
函数是 web 请求和处理响应的简单方式,不使用 XMLHttpRequest。这个 polyfill 编写的接近标准的 Fetch 规范(https://fetch.spec.whatwg.org)。
fetch 函数支持所有的 HTTP 方式:
HTML:
fetch('/users.html') .then(function(response) { return response.text() }).then(function(body) { document.body.innerHTML = body })
JSON:
fetch('/users.json') .then(function(response) { return response.json() }).then(function(json) { console.log('parsed json', json) }).catch(function(ex) { console.log('parsing failed', ex) })
评论
WebAssembly Polyfill展示 polyfill 可行性原型
WebAssembly Polyfill 包括用于展示 WebAssembly polyfill 可
WebAssembly Polyfill展示 polyfill 可行性原型
0
WebAssembly Polyfill展示 polyfill 可行性原型
WebAssemblyPolyfill包括用于展示WebAssemblypolyfill可行性的原型。其他库中用于设计实际标准二进制格式的工作正在进行中。此库也没有在本地浏览器进行解码,所以从技术上讲
WebAssembly Polyfill展示 polyfill 可行性原型
0
fetch-jsonp-polyfill支持 jsonp 的Fetch polyfill
fetch-jsonp-polyfill 是对原生FetchAPI的扩展,使之支持jsonp。下载地址 https://github.com/fetch-extras/fetch-jsonp-poly
fetch-jsonp-polyfill支持 jsonp 的Fetch polyfill
0
fetch-jsonp-polyfill支持 jsonp 的Fetch polyfill
fetch-jsonp-polyfill 是对原生 Fetch API 的扩展,使之支持 jsonp
fetch-jsonp-polyfill支持 jsonp 的Fetch polyfill
0
GitletGit 的 JavaScript 实现
Gitlet是Git的JavaScript实现。支持init,add,rm,commit,branch,checkout,diff,remote,fetch,merge,push,pull,statu
GitletGit 的 JavaScript 实现
0
JSMinNppNotepad++ 的 JavaScript 插件
Notepad++ 的 JavaScript 插件 提供 JavaScript 代码的压缩、格式化功
JSMinNppNotepad++ 的 JavaScript 插件
0