代码运行后报的错误总结
持续更新项目中报的错误……
1、Maximum call stack size exceeded
SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。重复执行一个东西,造成了死循环,检查所写的代码是否有死循环出现即可。
2、Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "addPop"
不能直接对props里的值进行改变,要放到computed里重新定义。
3、Computed property "visible" was assigned to but it has no setter.
将props里的值放在computed里重新定义后,需要设置set属性;在computed里写get(){}放接收的值,再写个空的set(){}就不会报错了。
4、_vm.$t is not a function
初次使用vue的第三方组件vux报的错误 ,vm.$t应该是配用了i18n,$t是vux里多语言的东西,参考的项目中有i18n,就将_vm.$t直接复制过来了,删掉即可。
5、Uncaught SyntaxError: Invalid shorthand property initializer
对象中的符号错误,很可能把:写成了=。

更多精彩