我正在使用Javascript和Google Charts进行开发,在测试代码时,我注意到我始终在Google Developers Console中收到此错误:
Error in event handler for (unknown): ReferenceError: result is not defined
at updateURLRegexp (chrome-extension://cgllkjmdafllcidaehjejjhpfkmanmka/tmn_search.js:489:16)
at notifyUserSearch (chrome-extension://cgllkjmdafllcidaehjejjhpfkmanmka/tmn_search.js:616:9)
at chrome-extension://cgllkjmdafllcidaehjejjhpfkmanmka/tmn_search.js:681:25handler @ extensions::uncaught_exception_handler:8exports.handle @ extensions::uncaught_exception_handler:100EventImpl.dispatch_ @ extensions::event_bindings:376EventImpl.dispatch @ extensions::event_bindings:393target.(anonymous function) @ extensions::SafeBuiltins:19publicClass.(anonymous function) @ extensions::utils:94dispatchOnMessage @ extensions::messaging:310
WorldHomicideCountAndRate.html:197 Region: Americas
SubRegions: 98
WorldHomicideCountAndRate.html:220 0
WorldHomicideCountAndRate.html:166 SubRegion: Caribbean
Countries: 46
WorldHomicideCountAndRate.html:220 2
为什么呢?这是我正在做的事情还是无法修复?
CODE我会发布代码片段,但我不确定哪个部分会产生问题:
您可以查看整个代码:
http://ltw1556.web.cs.unibo.it/WorldHomicideCountAndRate.html