监控数组拥有以下方法,我们可以操作它们就能同步对应的区域
push, shift, unshift, pop, slice, splice, remove, removeAt, removeAll, clear, ensure, sort, reverse, set
对数组进行push操作,并回车
对数组进行unshift操作,并回车
对数组进行ensure操作,并回车
(只有数组不存在此元素才push进去)
对数组进行remove操作,并回车
对数组进行removeAt操作,并回车
当前数组的长度为{{array.size()}},注意 我们无法修改数组length的固有行为,因此它无法同步视图,需要用size方法。