Beego框架。
修改源码:
beego/context/output.go下的JSON方法
output.Header("Content-Type", "application/json; charset=utf-8")
修改为
output.Header("Content-Type", "text/html; charset=utf-8")
就可以了
参考文档:http://www.thinkphp.cn/code/196.html
Beego框架。
修改源码:
beego/context/output.go下的JSON方法
output.Header("Content-Type", "application/json; charset=utf-8")
修改为
output.Header("Content-Type", "text/html; charset=utf-8")
就可以了
参考文档:http://www.thinkphp.cn/code/196.html
转载于:https://my.oschina.net/u/1444992/blog/672049