日期:2014-05-16  浏览次数:20558 次

IE6下,一个逗号引发的ajax提交问题

1.? ajax提交后输出:
{"status":1,"info":"\u5bc6\u7801\u4fee\u6539\u6210\u529f!"}
而没有提交到指定的页面.
2. 点击修改,发现验证的样式飘到最上方去了,后来才发现,也是一个逗号引发的错误.
错误标注如下:
对应的错误:
1.? art.dialog({
????title:'修改成功',
?????? content: responseText.info,
?????? width:300,
???????height:100,//此处的逗号引发了IE6下ajax提交不到指定页面的错误
???});
2. var pass_array = [
??{ name:"password_new",type:'password',simple:"密码",focusMsg:'最小长度:6 最大长度:16'},
??{ name:"password_check",type:'eq',to:'password_new',simple:"确认密码",focusMsg:'请再输入一遍您上面填写的密码'},//此处的逗号引发了样式错误
?];
修改说明:? 只需把上面两处的错误去掉就恢复正常了.