摘要:
vue 中使用 watch 出现了如下的报错 报错: Method "watch" has type "object" in the component definition. Did you reference the function Method "watch" has type "objec 阅读全文
摘要:
close函数调用open函数,close函数里调用的open函数的参数this赋值给that,这样可以通过that调用到data中的hello。 阅读全文
摘要:
不用修正箭头函数的this,this自动指向所在的上下文对象 对比非箭头函数的写法会更容易理解一些: 阅读全文