TypeError: _vm.switchNum.apply is not a function

uniapp中的TypeError: _vm.switchNum.apply is not a function错误:
原因是data和methods中的名字有重复,也可能是调用方法时,名字写错写成data中的名称。

你可能感兴趣的:(笔记,vue)