Vue运行报错--not defined

按F12键进入调试模式,谷歌总是提示Uncaught ReferenceError: ——is not defined这个错误。

原来是因为虽然是传递的值,但是在函数传参的时候也要加引号,加上引号后就不会提示 Uncaught ReferenceError:—— is not define 了。

原文地址:https://www.cnblogs.com/vinieo/p/9813114.html