【文件属性】:
文件名称:jinx-events:原型事件的 Jinx 模块
文件大小:21KB
文件格式:ZIP
更新时间:2021-06-07 22:51:34
JavaScript
用于链接原型事件的模块
安装
npm install jinx-events
例子
require ( 'jinx-events' ) ;
var myMc = new foo ( ) ;
myMc . x = 250 ;
myMc . y = 100 ;
addChild ( myMc ) ;
myMc . $bind ( 'enterFrame' , function ( ) {
this . rotation += 0.5 ; // it will spin
} ) . $bind ( 'click' , function ( ) {
this . y += 5 ; // it will go down a when clicked
} ) . $hover ( function ( ) {
this . alpha = 0.5 ; // it will be 50% al
【文件预览】:
jinx-events-master
----package.json(2KB)
----gulpfile.js(586B)
----.bowerrc(38B)
----gulp()
--------scripts.js(1KB)
--------inject.js(1KB)
--------watch.js(2KB)
--------server.js(930B)
--------proxy.js(2KB)
--------styles.js(1KB)
----src()
--------404.html(4KB)
--------index.html(1KB)
--------app()
--------favicon.ico(1KB)
----.npmignore(140B)
----LICENSE.md(1KB)
----.gitignore(76B)
----index.jinx(5KB)
----README.md(1KB)
----bower.json(147B)
----.editorconfig(212B)