摘要:
System.setProperty("webdriver.chrome.silentOutput", "true"); Logger.getLogger("org.openqa.selenium").setLevel(Level.OFF);设置之后还是没有关闭 ChromeDriver was s 阅读全文
摘要:
selenium操作chrome浏览器需要有ChromeDriver驱动来协助。webdriver中关浏览器关闭有两个方法,一个叫quit,一个叫close。 1 /** 2 * Close the current window, quitting the browser if it's the l 阅读全文
摘要:
List 是在开发中比较常用的集合,今天总结一下 Java 中初始化 List 的几种方式。 1、常规方式 List<String> list = new ArrayList<>(); list.add("1"); list.add("2"); list.add("3"); System.out.p 阅读全文
摘要:
先用MAX(time) 和 group by item_id 查询出不同的item_id对应的最大时间,然后再在外面连表查询,查询 表中 item_id 和login_time 时间 相等于刚才的查询记录的记录具体语句如下 select a.* from reyo a join (select it 阅读全文
摘要:
一、复制表里面的一条记录并插入表里面insert into reyo(title,keywords,desc,contents) selecttitle,keywords,desc,contents from reyo where reyo_id = 100;二、复制表里的多条数据/记录,并插入到表 阅读全文
摘要:
在遇到需要update设置的参数来自从其他表select出的结果时,需要把update和select结合使用,不同数据库支持的形式不一样,在mysql中如下: update A inner join(select id,name from B) c on A.id = c.id set A.name 阅读全文
摘要:
1、检查是否是移动端(Mobile)、ipad、iphone、微信、QQ等 <script type="text/javascript"> //判断访问终端 var browser={ versions:function(){ var u = navigator.userAgent return { 阅读全文
摘要:
Increased maximum number of open files to 10032 (it was originally set to 256). open Redis 时会看到如下日志: #You requested maxclients of 10000 requiring at l 阅读全文