Narutocc / knockout

0 stars 0 forks source link

knockout 指令2 #3

Open Narutocc opened 6 years ago

Narutocc commented 6 years ago

1. dependentObservable

进行运算的代码

2. ko.observableArray()

定义数组

list:ko.observableArray(this.data)

3. 数组方法

push()    ---> add to end
pop()     ---> remove last
unshift() ---> add to begin
shift()   ---> remove begin