⑴ .net 如何把資料庫里的數據寫成json格式
先寫成字元串,字元串格式為var list=[{"xlid":"cxh","xldigitid":123456,"topscore":2000,"topplaytime":"2009-08-20"},{"xlid":"zd","xldigitid":123456,"topscore":1500,"topplaytime":"2009-11-20"}];然後var jsonList = eval(list);//對象化jsonList即為json對象list