![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
报错异常
菜鸟M
甘于平凡却不甘于平凡的腐烂
展开
-
【mui】mui(...).pullRefresh(...).endPullToRefresh is not a function
1、需要把callback函数直接写到mui.init的配置那里,不要单独写一个函数然后调用2、加延迟 也是可以的setTimeout(nextRefresh, 1000);function nextRefresh() {mui(’#refreshContainer’).pullRefresh().endPullupToRefresh(false);}或者setTimeout(function(){mui(’#refreshContainer’).pullRefresh().endPullu原创 2020-11-09 20:20:37 · 1368 阅读 · 1 评论 -
Failed to execute ‘insertBefore‘ on ‘Node‘: parameter 1 is not of type ‘Node‘
Failed to execute ‘insertBefore’ on ‘Node’: parameter 1 is not of type ‘Node’意思是:传入到insertBefore的应该是结点类型,而我传的字符串,就会报错的,如下:insertBefore(),需要的结点类型的对象var html = "<span>我是下拉刷新的~~_"+down+"</span>"; 、、、这里的html是字符串类型的,不是span结点,所以报错var ul_node .原创 2020-11-09 20:05:11 · 6119 阅读 · 0 评论 -
【异常】Uncaught SyntaxError: Illegal return statement
Uncaught SyntaxError: Illegal return statement转载 2020-09-23 21:01:12 · 396 阅读 · 0 评论 -
【异常】unexpected end of input
输入意外终止!1、一定要看看自己的标点符号是不是丢了,我碰到的是函数的括号少写了一个原创 2020-09-12 17:47:59 · 589 阅读 · 0 评论 -
【异常】Cannot read property ‘style‘ of undefined
Cannot read property ‘style‘ of undefined window.onload原创 2020-09-11 17:18:49 · 2494 阅读 · 0 评论 -
【异常】Cannot read property ‘innerHTML‘ of null
Cannot read property ‘innerHTML’ of null出现这个错误可能的原因:1、下面代码中,如果我的 this 没有获取到值,就会报这个错;$(this).parents("tr").children[3].innerHTML; 2、没有获取到当前 id 的值(下面代码中,如果 id 输入错误,也会报这个错)toPrice = document.getElementById("goods_Price").innerHTML; 3、数据没有加载完就进行获取,.原创 2020-08-15 23:14:12 · 868 阅读 · 0 评论 -
【异常】Invalid or unexpected token:传参错误
报错的原因就是 : 数据有特殊字符,或者存在转义的字符下面是我遇到的问题,当我向我的 js 函数中穿字符串参数时,报的错:参数缺少引号解决办法:在字符串的前后都加上引号参考: http://blog.sina.com.cn/s/blog_15b2cba600102xduy.html...转载 2020-08-13 22:42:52 · 6214 阅读 · 0 评论