Created
March 9, 2016 01:59
-
-
Save fhefh2015/d10f873fb5a6a1961585 to your computer and use it in GitHub Desktop.
JSON数据HTTP Header标记
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
第一种: | |
header('Content-type: application/json'); | |
第二种: | |
header('Content-type: text/json'); | |
//第一种是标准兼容以后,第二种兼容IE6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment