We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// 初始化Promise对象 var promise = new kit.Promise(); // 设置触发方式 promise // when中的this指向promise实例 // 如果触发了deliver即调用订阅列表中的方法 .when(function() {console.log(this);this.deliver();}) // 订阅的第一个事件 .subscribe(function() {console.log(111)}) // 订阅的第二个事件 .subscribe(function() {console.log(222)});
The text was updated successfully, but these errors were encountered:
No branches or pull requests
kit.Promise
The text was updated successfully, but these errors were encountered: