weapp-event's People
Forkers
ronniesun stonegithubs lynnliu jbasttdi manfromearth emaiqi huangciyin jincan39 331886820 00ernest00 imlibo chenqingtao shenlesi66 chexuwu royaa hgt803 huanglilijie eric0liang xljinhz hcping wagnlinzh kay0806 qdu123 bottle1125 lpzahd zuotaogithub li-jun amazing-z kangjianfu cxw0504 duantianhen2014 tonyhey chenyomi baofengs mingge8888 als24 pockees huanghaodong chencheng365 hey-yuxiong testhzw sophild006 luyuan11233 guandaxia json7 dongyeforever maikuraki kukukukiki zvenshy rzdong glwz2017 marvinqu swoter cindyuan iq-scmweapp-event's Issues
你好,从app.js传到index.js数据出现问题
在app.jsd onLaunch()方法里面发送事件welcome,event.emit('welcome', 'hello').
在index.js的onLoad()方法里面监听不到这个事件。
在event.js里面的emit方法log发现callbacks这个数组undefined,导致没有发射事件
如果跨页面传输多个数据呢?
看代码是U不是写漏了一句 注销没有看到移除的方法?
function unregister(name, self) {
var callbacks = events[name];
if (Array.isArray(callbacks)) {
events[name] = callbacks.filter((tuple) => {
return tuple[0] != self;
})
}
}
/** 请问那句话是从集合删除得,是不是内存泄漏了?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.