没有合适的资源?快使用搜索试试~ 我知道了~
ember-promise:一个简单的Promise对象,它将用ember.run包装xhr resolvereject
共56个文件
js:23个
gitkeep:12个
hbs:3个
需积分: 9 0 下载量 155 浏览量
2021-05-13
20:03:42
上传
评论
收藏 25KB ZIP 举报
温馨提示
灰烬承诺 描述 一个简单的Promise对象,它将用ember.run包装xhr解析/拒绝 安装 # install via npm $ npm install ember-promise --save-dev 基本用法 import Ember from 'ember' ; import PromiseMixin from 'ember-promise/mixins/promise' ; var PeopleRoute = Ember . Route . extend ( { model : function ( ) { var people = [ ] ; PromiseMixin . xhr ( "/api/people" , "GET" ) . then ( function ( response ) { respon
资源推荐
资源详情
资源评论
收起资源包目录
ember-promise-master.zip (56个子文件)
ember-promise-master
.jshintrc 518B
.gitignore 247B
app
.gitkeep 0B
package.json 1KB
.bowerrc 60B
.travis.yml 276B
Brocfile.js 829B
LICENSE 1KB
index.js 85B
addon
.gitkeep 0B
mixins
promise.js 1KB
testem.json 170B
README.md 1KB
vendor
.gitkeep 0B
tests
.jshintrc 814B
acceptance
onerror-test.js 2KB
acceptance-test.js 1KB
onerror-with-handler-test.js 3KB
dummy
app
app.js 420B
components
.gitkeep 0B
templates
components
.gitkeep 0B
application.hbs 52B
people.hbs 88B
default.hbs 88B
models
.gitkeep 0B
helpers
.gitkeep 0B
views
.gitkeep 0B
index.html 614B
utilities
error-handler.js 100B
success-handler.js 104B
controllers
.gitkeep 0B
routes
onerror.js 509B
.gitkeep 0B
onerror-with-multiple-handlers.js 774B
onerror-with-multiple-error-handlers.js 810B
people.js 455B
onerror-with-handler.js 584B
default.js 450B
styles
app.css 31B
initializers
on-error.js 458B
router.js 611B
public
robots.txt 41B
.gitkeep 0B
crossdomain.xml 603B
config
environment.js 1KB
unit
.gitkeep 0B
promise-unit-test.js 1KB
helpers
resolver.js 253B
start-app.js 522B
index.html 960B
test-helper.js 112B
config
environment.js 90B
.ember-cli 280B
.npmignore 135B
bower.json 490B
.editorconfig 543B
共 56 条
- 1
资源评论
hsjdbdb
- 粉丝: 21
- 资源: 4586
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功