报错: method "watch" has type "object" in the component definition. did you reference the function method "watch" has type "object" in the component definition. did you reference the function correctly?
原因: watch 是一个对象,应该以键值对的形式来使用,但是我 将 watch 放到了 methods: {} 中,导致了这个问题;
解决办法: 将watch 对象 拿出来,与 methods 平级;
附上当时的代码:
如对本文有疑问, 点击进行留言回复!!
MFC的静态库.lib、动态库.dll(包含引入库.lib)以及Unicode库示例
CTF 刷题记录(一) 白云新闻搜索(手动与自动化SQL注入)
javascript如何使用函数random来实现课堂随机点名方法详解
网友评论