在以下线路发生错误,我的聊天脚本:
$("#chatbox_"+chatboxtitle+" .chatboxcontent")
.scrollTop($("#chatbox_"+chatboxtitle+" .chatboxcontent")[0].scrollHeight);
setTimeout('$("#chatbox_"+chatboxtitle+" .chatboxcontent")
.scrollTop($("#chatbox_"+chatboxtitle+" .chatboxcontent")[0].scrollHeight);', 100);
'$(...) [0]'是未定义的:错误信息对于什么问题是非常清楚的。'$(“#chatbox _”+ chatboxtitle +“.chatboxcontent”)'的内容是什么? – naththedeveloper
什么是完整未切割错误?这个代码在什么情况下放置?只是这个代码并没有告诉我们很多。 – Oldskool