码迷,mamicode.com
首页 >  
搜索关键字:string match    ( 100086个结果
null 与 undefined
JavaScript 中一共有 5 种基本类型,分别是 String、Number、Boolean、Null 和 Undefined 。前 3 种都比较好理解,后面两种就稍微复杂一点。 Null 类型只有一个值,就是 null ; Undefined 类型也只有一个值,即 undefined 。 n...
分类:其他好文   时间:2014-04-29 11:43:47    阅读次数:484
C# 日期格式化
DateTime.Now.ToString("{0:yyyy-MM-dd HH:mm:ss}"); //返回string类型string.Format("{0:yyyy-MM-dd HH:mm:ss}",DateTime.Now);
分类:其他好文   时间:2014-04-29 11:42:47    阅读次数:408
9行代码体现集合框架中的一个小细节
String[] strs = {"string--01", "string--02", "string--03", "string--04"};List strsList = Arrays.asList(strs);//以下语句输出:[string--01, string--02, string-...
分类:其他好文   时间:2014-04-29 11:33:45    阅读次数:345
java.lang.String细节
String field;@Testpublic void test01() { String a = "aaa"; String b = "aaa"; String c = new String("aaa"); String d = new String("aaa"); System.out.pr...
分类:编程语言   时间:2014-04-29 11:28:46    阅读次数:391
FileWriter细节
创建FileWriter对象时的细节 有可能会产生编译时异常IOException和运行时异常FileNotFoundException 使用构造方法FileWriter(String fileName)或FileWriter(File file)创建FileWriter对象时 指定文件不存在 --...
分类:其他好文   时间:2014-04-29 11:27:46    阅读次数:646
C#字符串操作 取文本左边 取文本右边 取文本中间 取文本中间到List集合 指定文本倒序
/// /// 取文本左边内容 /// /// 文本 /// 标识符 /// 左边内容 public static string GetLeft(string str, string s) ...
分类:其他好文   时间:2014-04-29 11:26:47    阅读次数:362
md5 对字符串进行加密的方法 简单好用
1 public static String makeMD5(String password) { 2 String result = null; 3 4 MessageDigest messageDigest; 5 try { 6 ...
分类:其他好文   时间:2014-04-29 10:16:46    阅读次数:348
获取用户的IP地址和本机IP4地址
/// /// 获取用户的IP地址 /// /// public static string GetIPAddress() { string user_IP = string.Empty; ...
分类:其他好文   时间:2014-04-29 10:16:45    阅读次数:397
.net获取ip
引用自:http://hi.baidu.com/daodaoliangbi/item/d6dcf5af6f6c003c020a4dfc多数代码类似:string IpAddress = (HttpContext.Current.Request.ServerVariables["HTTP_X_FORW...
分类:Web程序   时间:2014-04-29 09:48:46    阅读次数:440
13 BroadcastReceiver
复写BroadcastReceiver中的onReceive()方法。intent-filter过滤器: 发送intentprotected static final String ACTION = "com.szy.broadcast.ACTI...
分类:其他好文   时间:2014-04-29 09:24:46    阅读次数:357
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!