【发布时间】:2012-09-21 11:34:01
【问题描述】:
我在 json 上有问题,它只显示“Content-Type: text/html”我在 localhost 上测试,我的在线代码是
header('Access-Control-Allow-Origin: *');
header('Content-Type: application/javascript');
//header('Content-type: text/javascript');
//header('Content-type: application/json');
【问题讨论】:
-
你为什么不用
application/json?