JavaScript 中一共有 5 种基本类型,分别是
String、Number、Boolean、Null 和 Undefined 。前 3 种都比较好理解,后面两种就稍微复杂一点。 Null 类型只有一个值,就是
null ; Undefined 类型也只有一个值,即 undefined 。 n...
分类:
其他好文 时间:
2014-04-29 11:43:47
阅读次数:
484
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
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
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对象时的细节
有可能会产生编译时异常IOException和运行时异常FileNotFoundException 使用构造方法FileWriter(String
fileName)或FileWriter(File file)创建FileWriter对象时 指定文件不存在 --...
分类:
其他好文 时间:
2014-04-29 11:27:46
阅读次数:
646
/// /// 取文本左边内容 /// /// 文本 /// 标识符 /// 左边内容 public
static string GetLeft(string str, string s) ...
分类:
其他好文 时间:
2014-04-29 11:26:47
阅读次数:
362
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地址 /// /// public static string
GetIPAddress() { string user_IP = string.Empty; ...
分类:
其他好文 时间:
2014-04-29 10:16:45
阅读次数:
397
引用自:http://hi.baidu.com/daodaoliangbi/item/d6dcf5af6f6c003c020a4dfc多数代码类似:string
IpAddress = (HttpContext.Current.Request.ServerVariables["HTTP_X_FORW...
分类:
Web程序 时间:
2014-04-29 09:48:46
阅读次数:
440
复写BroadcastReceiver中的onReceive()方法。intent-filter过滤器:
发送intentprotected static final String ACTION = "com.szy.broadcast.ACTI...
分类:
其他好文 时间:
2014-04-29 09:24:46
阅读次数:
357