调试jquery出现的错误:SCRIPT257: 由于出现错误80020101

来源:互联网 发布:mysql的大于等于符号 编辑:程序博客网 时间:2024/05/16 08:04

<input type="password" name="pwd" id="pwd" />

js中使用$('#pwd').append("<p>12ewrwerwe</p>");就会报错:

SCRIPT257: 由于出现错误80020101 而导致此项操作无法完成

解决:在容器内部使用append

$('td').append("<p>12ewrwerwe</p>");

或者使用after:$('#pwd').after("<p>12ewrwerwe</p>");】、

当表单与表格如下混写时:

<table cellpadding=3 cellspacing=3>

<form method='post' id="form1" action="__URL__/insert/"  enctype="multipart/form-data">

</table>

</form>

ie下可以正常提交,Firefox下不报错,但不能提交。submit按钮事件无效(ie下正常)。

解决:

<form method='post' id="form1" action="{:U('/Supplier/insert')}" enctype="multipart/form-data">
<table cellpadding=3 cellspacing=3>

</table>
</form>


调整表格、表单的位置,Firefox提交正常!