摘要: public void screenshot(final String path_screenshot) throws IOException { String contextName = this.driver.getContext(); this.driver.context("NATIVE_APP"); File srcFile = this... 阅读全文
posted @ 2017-11-03 15:06 startToDo 阅读(221) 评论(0) 推荐(0)
摘要: 原文出处:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce 语法:arr.reduce(callback,[ initialValue]) reduce对数组中存 阅读全文
posted @ 2017-08-11 11:39 startToDo 阅读(250) 评论(0) 推荐(0)
摘要: 正则表达式exec()函数: exec() 方法用于检索字符串中的正则表达式的匹配。 返回值是一个数组,但是此数组的内容和正则对象是否是全局匹配有着很大关系: 1.没有g修饰符: 在非全局匹配模式下,此函数的作用和match()函数是一样的,只能够在字符串中匹配一次,如果没有找到匹配的字符串,那么返 阅读全文
posted @ 2017-07-05 12:10 startToDo 阅读(876) 评论(0) 推荐(0)
摘要: 函数f自运行后返回函数e,f.support等价于e.support;f.support里的f()函数调用时直接运行的是函数e ,发函数内的其他赋值和函数运行语句不会再次运行。 2017-06-20 阅读全文
posted @ 2017-06-20 11:24 startToDo 阅读(107) 评论(0) 推荐(0)
摘要: 新建html文件,在浏览器中打开文件,在控制台输入consoole.log(window);新建html文件,引入JQuery后在浏览器中打开,在控制台同样输入consoole.log(window);会发现window下多了$(jquery)对象。 1.(function(a, b){})(win 阅读全文
posted @ 2017-06-16 15:03 startToDo 阅读(242) 评论(0) 推荐(0)