////Koa启动Chrome报错求解答////
刚刚接触koa,运行后正常。但chrome会报错。求大牛们解答
Error in event handler for (unknown): Unexpected token h
Stack trace: SyntaxError: Unexpected token h
at Object.parse (native)
at chrome-extension://gbmdgpbipfallnflgajpaliibnhdgobh/assets/all.js:1:2709
at messageListener (extensions::messaging:340:9)
at EventImpl.dispatchToListener (extensions::event_bindings:397:22)
at Event.publicClass.(anonymous function) [as dispatchToListener] (extensions::utils:93:26)
at EventImpl.dispatch_ (extensions::event_bindings:379:35)
at EventImpl.dispatch (extensions::event_bindings:403:17)
at Event.publicClass.(anonymous function) [as dispatch] (extensions::utils:93:26)
at dispatchOnMessage (extensions::messaging:304:22) localhost/:1
2 回复
这看起来是chrome插件报错的。。。
chrome-extension://gbmdgpbipfallnflgajpaliibnhdgobh/assets/all.js
已经解决。 这个好想如果 … this.body=‘string’ //这里如果是纯字符串就会报错,如果html标签就不会 …