avalonx
v1.0.1
Published
state management for avalon2.js
Downloads
1
Readme
Avalonx
Centralized State Management for Avalon2.js.
Examples
Running the examples:
$ npm install
$ npm run dev # serve examples at localhost:8080
部分API调整
~~strict~~
watch(getter: String, cb: Function)
响应式地监测一个 getter 表达式,当值改变时调用回调函数 要停止监测,直接调用返回的处理函数。unwatch(getter?: String, cb?: Function)
删除监听- 若 getter 为空,则删除所有监听,若 getter 为表达式,则删除该表达式的所有监听
- 若 cb 不为空,则删除该表达式对应cb的监听