vue报错,SyntaxError: Expected an identifier but found '(' instead

vue报错,SyntaxError: Expected an identifier but found '(' instead

VUE项目 在safari浏览下白屏,报错如下:
SyntaxError: Expected an identifier but found '(' instead

img

windows系统下safari版本很低,不支持es6对象的写法,需要按照es5的写法来写。

    new Vue({
        el: '#app',
        //注意这里写法,如果有其他es6的写法要改成es5的
        data: function () {
            return {
                //.....
            }
        }
    })
您好,我是有问必答小助手,您的问题已经有小伙伴帮您解答,感谢您对有问必答的支持与关注!
PS:问答VIP年卡 【限时加赠:IT技术图书免费领】,了解详情>>> https://vip.csdn.net/askvip?utm_source=1146287632