2.0.0-rc.19
Window/Chrome 58
2.2.6
https://codepen.io/StanleyYechen/pen/WEbmLo
详见示例
详见示例
因为changeTotal()中指定current为8啊...
改成下面就OK
changeTotal() {
this.current = Math.floor(Math.random()*8) +1;
}
ref获取page组件,然后直接设置currentPage = 8;
@on-change
Most helpful comment
ref获取page组件,然后直接设置currentPage = 8;