用Xpath定位元素的方法总是记不住,经常要翻出各种文档链接参考,干脆把需要用到的内容整到这个笔记中方便查找。
分类:
编程语言 时间:
2014-05-09 05:00:54
阅读次数:
436
// 对Date的扩展,将 Date 转化为指定格式的String //
月(M)、日(d)、小时(h)、分(m)、秒(s)、季度(q) 可以用 1-2 个占位符, // 年(y)可以用 1-4 个占位符,毫秒(S)只能用 1
个占位符(是 1-3 位的数字) ...
分类:
其他好文 时间:
2014-05-09 04:38:24
阅读次数:
336
-----------黑马程序员
IOS培训、Android培训、Java培训、期待与您交流----------------#import int main(){//
oc数组只能存放oc对象,不能存放非oc对象,数组是有序的// oc数组创建// nil为数组的结束标志,所以不能存放nilNSAr...
分类:
其他好文 时间:
2014-05-09 04:33:38
阅读次数:
316
Android 和 PHP 之间进行数据加密传输[代码] [Java]代码1 mcrypt = new
MCrypt();2 /* Encrypt */3 String encrypted = MCrypt.bytesToHex(
mcrypt.encrypt("Text to E...
分类:
移动开发 时间:
2014-05-09 04:31:05
阅读次数:
442
NSData *jsonContent = [[userInfo
objectForKey:@"acme"] dataUsingEncoding:NSUTF8StringEncoding]; NSDictionary *
jsonDic = nil; NSError *error...
分类:
Web程序 时间:
2014-05-09 04:26:15
阅读次数:
361
invoke-command -ComputerName $server
-Credential $cred
-ScriptBlock{param($server,$UserName,$serverpass,$starttime,$startdate) ...
分类:
其他好文 时间:
2014-05-09 04:17:04
阅读次数:
417
1 public class T008 { 2 public static void
main(String[] args) { 3 int[] num = { 3, 4, 5, 1, 2 }; 4
System.out.println(min(num, 5...
分类:
编程语言 时间:
2014-05-09 04:12:47
阅读次数:
326
1.ls
命令---------------------------------------------------------------------ls以默认方式显示当前目录文件列表ls
-a显示所有文件包括隐藏文件ls -l显示文件属性,包括大小,日期,符号连接,是否可读写及是否可执行----...
分类:
系统相关 时间:
2014-05-09 04:09:24
阅读次数:
408
属性器的使用,通用的 写东西精致 细致public System.Int16 Status {
get; set; } public string StatusValue { get { if (Status =...
分类:
其他好文 时间:
2014-05-09 04:03:29
阅读次数:
256
1.循环 1 public class T009 { 2 public static void
main(String[] args){ 3 System.out.println(fibonacci(3)); 4 } 5 public static
long ...
分类:
编程语言 时间:
2014-05-09 03:58:09
阅读次数:
270