php+jQuery程序ff里面出not well-formed错误
2010年08月30日 | 17:00分类:jQuery | 265 views
原因:估计是cation传输的默认的是text/xml,而json传输需要plain;另外好像action的data返回是数据库操作的1也会出这个错,解决方法同此。
解决方法:在action的php函数开头第一句写:header(“Content-type: text/plain; charset=UTF-8″);
—–
try{
header(“Content-type: text/plain; charset=UTF-8″);
$DB = new DataBase();
——
原创文章,转载请注明: 转载自长沙营销型网站建设,营销型网站开发,Zen-Cart | 小龙包

















