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

前提:

       在项目中写好后端接口后,编写前端页面时测试后端接口时,页面没有反应。并出现错误提示: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中的方法名一致即可。