ember-pubsub:Ember.js的简单pubsub机制

时间:2021-05-21 08:51:04
【文件属性】:
文件名称:ember-pubsub:Ember.js的简单pubsub机制
文件大小:17KB
文件格式:ZIP
更新时间:2021-05-21 08:51:04
JavaScript 余烬 Ember.js的简单pubsub机制 问题? 给我Ping我 安装 这是一个Ember CLI插件,用于安装: npm install ember-pubsub --save 使用说明 import PubSub from 'ember-pubsub/pubsub' ; var pubsub = PubSub . create ( ) ; pubsub . subscribe ( 'sayHello' , this , function ( name ) { console . log ( 'hello ' + name ) ; } ) ; pubsub . publish ( 'sayHello' , 'Alex' ) ; // => hello Alex pubsub . unsubscribe ( 'sayHello' ) ; 开发说明 git clone这个仓库
【文件预览】:
ember-pubsub-master
----bower.json(543B)
----.ember-cli(280B)
----.travis.yml(168B)
----config()
--------environment.js(90B)
----README.md(806B)
----addon()
--------pubsub.js(324B)
----.bowerrc(60B)
----testem.json(159B)
----.editorconfig(507B)
----tests()
--------.jshintrc(1KB)
--------index.html(1KB)
--------test-helper.js(449B)
--------helpers()
--------dummy()
--------unit()
----.gitignore(249B)
----Brocfile.js(714B)
----app()
--------.gitkeep(0B)
----index.js(45B)
----package.json(933B)
----vendor()
--------.gitkeep(0B)

网友评论