Pits encountered in developing mobile web applications with Vue

Pay attention to the writing methods of methods and computed methods, otherwise it may appear normal on Android phones, but there are problems on iPhone phones. The correct writing method is:
methods:{
m1:function(){
alert('hello')
}
}

Wrong spelling:
methods:{
m1(){
alert('hello')
}
}

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326690101&siteId=291194637