Ampersand-Fetch:Native #fetch 与 React Native 一起使用

时间:2021-06-10 08:39:31
【文件属性】:
文件名称:Ampersand-Fetch:Native #fetch 与 React Native 一起使用
文件大小:5KB
文件格式:ZIP
更新时间:2021-06-10 08:39:31
JavaScript &取号 替代使用 React Native 的 #fetch 方法的 & 符号同步。 您需要覆盖 Ampersand 模型的默认同步方法: var Model = require('ampersand-model'); var Fetch = require('ampersand-fetch'); var AmznModel = Model.extend({ sync() { return Fetch.apply(this, arguments); } }); module.exports = AmznModel; 安装 npm install ampersand-fetch 运行规格 npm test 执照 麻省理工学院
【文件预览】:
Ampersand-Fetch-master
----.jshintignore(13B)
----package.json(1KB)
----test()
--------index.js(4KB)
----.gitignore(23B)
----README.md(512B)
----.jshintrc(254B)
----ampersand-fetch.js(3KB)

网友评论