参考:http://www.cnblogs.com/youring2/archive/2013/03/01/2938850.htmlgithub地址:https://github.com/douglascrockford/JSON-js序列化,json对象化转string var jsonObj =...
分类:
Web程序 时间:
2015-06-05 17:27:24
阅读次数:
167
using System.IO;string directory = "UploadPhotos/"; //在服务器上创建上传图片存储的文件夹if (!Directory.Exists(Server.MapPath(directory))...
分类:
Web程序 时间:
2015-06-05 17:24:12
阅读次数:
154
function getVehiclesPreLocation(dataArray) { var arr = new Array(); for (var i = 0; i >(data); string jsonString = _srv.GetData(noList); return Json(j...
分类:
Web程序 时间:
2015-06-05 17:18:29
阅读次数:
165
/// /// 将json转换为DataTable /// /// 得到的json /// public static DataTable JsonToDataTable(string strJson) { ...
class Program { static void Main(string[] args) { var dt = new System.Data.DataTable(); dt.Columns.Add("#"); ...
分类:
编程语言 时间:
2015-06-05 17:05:02
阅读次数:
155
ASCIIEncoding encoder = new ASCIIEncoding(); string Str = encoder.GetString(message, 0, bytesRead);
分类:
其他好文 时间:
2015-06-05 15:35:27
阅读次数:
116
private static final String ENCODING = "utf-8"; public static String loadText(Context context, String assetFilePath){ InputStream is = n...
分类:
移动开发 时间:
2015-06-05 15:35:20
阅读次数:
142
第一种方案DAO层的函数方法1Public User selectUser(String name,String area);对应的Mapper.xml123其中,#{0}代表接收的是dao层中的第一个参数,#{1}代表dao层中第二参数,更多参数一致往后加即可。第二种方案此方法采用Map传多参数....
分类:
其他好文 时间:
2015-06-05 15:35:09
阅读次数:
123
//使用NPOI导入Excel public static DataTable importExcelToDataSetUsingNPOI(string FilePath, string fileName) { DataSet myDs = new DataSet(); ...
分类:
其他好文 时间:
2015-06-05 15:34:41
阅读次数:
202
1.数据类型:5种简单数据类型——Undefined,Null,Boolean,Number,String 1种复杂数据类型(引用类型值)——Object 1.1 Undefined 包含“undefined”的变量与尚未定义的变量的区别var message;alert(messag...
分类:
编程语言 时间:
2015-06-05 15:32:44
阅读次数:
250