Uncaught TypeError: Cannot read property 'slice' of undefined
at HTMLDocument.<anonymous> (index.php?s=/home/index/search/type/ask.html:666)
at l (js.php?f=js/jquery-2.0.3.min.js,js/com/com.functions.js,static/os-loading/loading.js,js/core.js,js/…:2)
at Object.fireWith [as resolveWith] (js.php?f=js/jquery-2.0.3.min.js,js/com/com.functions.js,static/os-loading/loading.js,js/core.js,js/…:2)
at Function.ready (js.php?f=js/jquery-2.0.3.min.js,js/com/com.functions.js,static/os-loading/loading.js,js/core.js,js/…:2)
at HTMLDocument.S (js.php?f=js/jquery-2.0.3.min.js,js/com/com.functions.js,static/os-loading/loading.js,js/core.js,js/…:2)
显示的错误代码行数在178,666号
178号真实代码:
代码最多330行,提示666行什么意思 ?
$(".text_content").html()
没有找到对应的DOM元素
调用html方法返回
undefined
对
undefined
调用slice
方法,然后就抛异常咯。