js:
1 json to string:
JSON.stringify(dataList);
2 string to json:
JSON.parse(dataList);
c#:
1 json to string:
2 string to Json:
JsonConvert.DeserializeObject<Model>(dataList)
js:
1 json to string:
JSON.stringify(dataList);
2 string to json:
JSON.parse(dataList);
c#:
1 json to string:
2 string to Json:
JsonConvert.DeserializeObject<Model>(dataList)
转载于:https://www.cnblogs.com/zxhome/p/11585220.html