E/Web Console(8272): Uncaught ReferenceError: functionName is not defined:1 while loading webviews in a View Pager(E/Web 控制台(8272):未捕获的 ReferenceError:未定义函数名称:1 在视图寻呼机中加载 web 视图时)
问题描述
我正在尝试在视图寻呼机中加载网络视图.
I am trying to load webviews in a view pager.
加载页面后,在onPageFinished()
中调用了一个javascript函数以正常速度滚动时,网页正在加载并执行 javascript.
After loading the page, a javascript function is called in onPageFinished()
While scrolling at normal speed the webpages are loading and the javascript is executed.
但是在高速滚动时出现以下异常.
But while scrolling at high speed the following exception is occured.
testFunction() 是
testFunction() is
请帮忙...
推荐答案
我已经解决了这个问题
只需设置 webChromeClient 并捕获错误并重新加载页面...
just set webChromeClient and catch the error and reload the page...
这篇关于E/Web 控制台(8272):未捕获的 ReferenceError:未定义函数名称:1 在视图寻呼机中加载 web 视图时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!