【发布时间】:2010-05-22 13:00:13
【问题描述】:
我需要将 JSON 编码的响应返回到 flash http get 请求。
在 ASP.NET 中,我使用 ASHX 处理程序来执行此操作。 什么是 PHP 等价物? 我的意思是为了我只得到 JSON,而不是 等。
【问题讨论】:
标签: php asp.net flash json actionscript-3
我需要将 JSON 编码的响应返回到 flash http get 请求。
在 ASP.NET 中,我使用 ASHX 处理程序来执行此操作。 什么是 PHP 等价物? 我的意思是为了我只得到 JSON,而不是 等。
【问题讨论】:
标签: php asp.net flash json actionscript-3
你应该把它放在你的脚本之上:
header('Content-Type: application/json; charset=utf-8');
【讨论】:
header('Content-type: application/json');【讨论】: