methods和computed内方法的写法要注意,否则可能出现在Android手机上正常,而在iPhone手机上却有问题,正确的写法是:
错误的写法:
methods:{
m1:function(){
alert('hello')
}
}
错误的写法:
methods:{
m1(){
alert('hello')
}
}