为什么下面的代码没有捕获抛出的异常?$http.get(null) // <- this throws a fit console.log(e); // <- thisis not being triggered
错误:$http:badreq Http请求配置url必须是字符串或$sce受信任的对象。
当我按下'train‘按钮来调用train()函数时,出现了上面的错误。是我的问题,还是教程中的错误?(我确实遵循了指南步骤,在最新版本的chrome中使用本地主机进行step...and测试) 第一个片段来自index.js,第二个片段来自index.html。 collect(label) { return recognizer.stopListening(); if (la