在methods中使用箭头函数无法获取this
ExamName:()=> {
console.log(this);
}
这样就行了:
ExamName:function() {
console.log(this);
}

相关文章:

  • 2021-07-07
  • 2021-07-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案