上一篇: 下一篇:

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();

——

喜欢本文,那就收藏到: Del.icio.us Google书签 Digg Live Bookmark Technorati Furl Yahoo书签 Facebook 百度搜藏 新浪ViVi 365Key网摘 天极网摘 和讯网摘 博拉网 POCO网摘 添加到饭否 QQ书签 Digbuzz我挖网
  • 暂无相关日志

发表您的评论

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word