Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/412.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript在第一页加载时或在某些时间重新加载后,不可使用“复制”;“清除缓存”;_Javascript_Google Chrome_Debugging - Fatal编程技术网

Javascript在第一页加载时或在某些时间重新加载后,不可使用“复制”;“清除缓存”;

Javascript在第一页加载时或在某些时间重新加载后,不可使用“复制”;“清除缓存”;,javascript,google-chrome,debugging,Javascript,Google Chrome,Debugging,我尝试调试一个JavaScript错误,它主要发生在第一个加载页面上 2017-06-27 10:05:12.480 /static/version1498550705/frontend/Example/default/en_US/Ves_ImageSlider/js/owl.carousel.min.js:1 Uncaught TypeError: Cannot read property 'fn' of undefined at /static/version1498550705/f

我尝试调试一个JavaScript错误,它主要发生在第一个加载页面上

2017-06-27 10:05:12.480 /static/version1498550705/frontend/Example/default/en_US/Ves_ImageSlider/js/owl.carousel.min.js:1 Uncaught TypeError: Cannot read property 'fn' of undefined
    at /static/version1498550705/frontend/Example/default/en_US/Ves_ImageSlider/js/owl.carousel.min.js:1
    at /static/version1498550705/frontend/Example/default/en_US/Ves_ImageSlider/js/owl.carousel.min.js:1
2017-06-27 10:05:12.548 (index):285 Uncaught TypeError: owl.owlCarousel is not a function
    at HTMLDocument.<anonymous> ((index):285)
    at fire (jquery.js:3232)
    at Object.fireWith [as resolveWith] (jquery.js:3362)
    at ready (jquery.js:3582)
2017-06-27 10:05:12.480/static/version1498550705/frontend/Example/default/en_US/Ves_imagesslider/js/owl.carousel.min.js:1未捕获类型错误:无法读取未定义的属性“fn”
at/static/version1498550705/frontend/Example/default/en_US/Ves_imagesslider/js/owl.carousel.min.js:1
at/static/version1498550705/frontend/Example/default/en_US/Ves_imagesslider/js/owl.carousel.min.js:1
2017-06-27 10:05:12.548(索引):285未捕获类型错误:owl.owlCarousel不是函数
在HTMLDocument。((索引):285)
失火(jquery.js:3232)
在Object.fireWith[as resolveWith](jquery.js:3362)
准备就绪(jquery.js:3582)
这个问题与其说是关于错误本身,还不如说是广义的

我只是想问我如何才能正确地复制这个bug来解决它

清除缓存和Inkognito窗口并不能真正帮助重现这种情况。 但这种情况发生的频率比有时要高

我如何调试这样一个“海森堡”


编辑:这个问题可能是随机的,概率约为10%。。。当多次按F5(无缓存清除)时,类似于每三次。。仍然很难调试。可能是时间问题?

一天结束时,问题是需要加载两个库,第二个库取决于Jquery。我能够用垫片配置修复它


另请参见

一天结束时,问题是需要js加载两个库,第二个库取决于Jquery。我能够用垫片配置修复它


另请参见

如果您设置了一些自动化的东西,例如,反复加载页面,那么在总体方案中,如果您有一段时间没有遇到错误,那么最后一次尝试修复它可能会成功?可能是由于时间原因。您可以尝试启用节流。Chrome在“网络”选项卡中有此选项。切换到GPRS并重试。如果您设置了一些自动的功能,例如,不断地反复加载页面,那么在总体方案中,如果您有一段时间没有遇到该错误,那么最后一次尝试修复该错误可能会成功呢?可能是时间原因造成的。您可以尝试启用节流。Chrome在“网络”选项卡中有此选项。切换到GPRS,然后重试。