public ActionResult tb()
{
ArrayList list = new ArrayList();
list.Add(stufile);
return new ContentResult
{
Content = new JavaScriptSerializer { MaxJsonLength = Int32.MaxValue }.Serialize(list),
ContentType = "application/json"
};
public class stuReadFile
{
public string file_name;
public string belong;
public string size;
public string create_time;
public string fpath;
}
list转为json
猜你喜欢
转载自blog.csdn.net/aq9527/article/details/80623603
今日推荐
周排行