-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
如果我们写ES6:
import oo from 'eoo';
/**
* 用户信息面板类
*
* @class common.Account
*/
class Account {
/**
* 初始化
*
* @method common.Account#init
*/
init() {
// ...
}
}
oo.defineAccessor(Account.prototype, 'globalData');
oo.defineAccessor(Account.prototype, 'widgetContainer');
oo.defineAccessor(Account.prototype, 'templateEngine');这个defineAccessor就比较奇怪,是不是能有个defineAccessorFor方法,直接给class?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels