public string GetJsonFromDataTable(DataTable dt,
int total, bool ShowFooter, string fields, string inputfiled, string ShowMessage
= "合计:", string filt...
分类:
Web程序 时间:
2014-05-10 00:10:36
阅读次数:
397
public static String getLastMonthTime(){ Calendar
calendar = Calendar.getInstance(); calendar.add(Calendar.MONTH, -1); int y...
分类:
编程语言 时间:
2014-05-10 00:03:29
阅读次数:
532
1: /// 2: /// 去除HTML标记 3: /// 4: /// 包括HTML的源码 5:
/// 已经去除后的文字 6: public static string RemoveHTML(string Htmlstring) 7: { 8:...
分类:
Web程序 时间:
2014-05-09 23:51:01
阅读次数:
404
1 public static void main(String[] args) { 2
Integer in1 = 128; 3 Integer in2 = 128; 4 System.out.println(in1 == in2 ); 5...
分类:
其他好文 时间:
2014-05-09 23:50:29
阅读次数:
270
1 // 遍历一个list 2 public static void printList(List
list){ 3 for (String string : list) { 4 list.add("eeee"); // 运行错误 5 ...
分类:
其他好文 时间:
2014-05-09 23:31:33
阅读次数:
467
1.通过浏览器的句柄来操纵窗口,得到句柄的方法 public String
getWindowHandle(){ String currentWindow = driver.getWindowHandle(); return
currentWindow; } 2.切换到最新的窗口 pub...
分类:
Web程序 时间:
2014-05-09 23:27:19
阅读次数:
406
第一次发文章,格式不太规范,不过以后会逐渐改正的,请大家多多指正public class
Pager { private string _pageurl; private int _pagecount; private int
_currentpage...
分类:
其他好文 时间:
2014-05-09 23:18:55
阅读次数:
335
搭建hadoop集群的时候一定会用到的就是SSH免密码登录[hadoop@hadoop1 ~]$
ssh-keygen -t rsaGenerating public/private rsa key pair.Enter file in which to
save the key (/home/ha...
分类:
系统相关 时间:
2014-05-09 23:10:11
阅读次数:
471
将读取的数据写到log.txt文件中,先在工程下新建一个log.txt文件public
class Program { public const string LOGGER_FILE = "log.txt"; public static void
Logger(st...
分类:
Web程序 时间:
2014-05-09 23:03:52
阅读次数:
843
在程序中封装了一个List集合对象,然后需要把该集合中的实体插入到数据库中,由于项目使用了Spring+MyBatis的配置,所以打算使用MyBatis批量插入,由于之前没用过批量插入,在网上找了一些资料后最终实现了,把详细过程贴出来。实体类TrainRecord结构如下:public
class ...
分类:
其他好文 时间:
2014-05-09 20:40:42
阅读次数:
335