Results 2 comments of Ali Etty

@blackHuLi > app.$on('reduce', function () { > console.log("我被减了"); > this.message--; > }); > app.$once('reduceOnce', function () { > console.log('只执行一次的方法'); > this.message--; > }); > //如果按钮在作用域外部,可以利用$emit来执行。 > function reduce() { >...

@mukiwu 这个应该是数组sort()方法的问题,当你没有写 {{ item }} 的时候,就没有调用sort方法。