前提:

       在项目中写好后端接口后,编写前端页面时测试后端接口时,页面没有反应。并出现错误提示:ERROR TypeError: _co.singlechoic is not a function。如下图所示:

【问题解决】ERROR TypeError: _co.singlechoic is not a function

ts:

【问题解决】ERROR TypeError: _co.singlechoic is not a function

错误原因:

        在ts中写方法时修改了方法名,导致html和ts中的方法名不一致。

解决方法:

         修改HTML和ts中的方法名一致即可。

 

相关文章:

  • 2021-08-14
  • 2021-04-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
  • 2022-01-18
猜你喜欢
  • 2022-12-23
  • 2021-07-15
  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
相关资源
相似解决方案