public string view(){
// 不声明json会直接返回json字符串,声明后直接返回的对象
Response.ContentType = "application/json";
Response.Charset = "utf-8";
xxxxx代码块
return jsonstr;
}
C#.NET返回JSON对象
最新推荐文章于 2023-12-15 00:33:06 发布
public string view(){
// 不声明json会直接返回json字符串,声明后直接返回的对象
Response.ContentType = "application/json";
Response.Charset = "utf-8";
xxxxx代码块
return jsonstr;
}