- 博客(5)
- 收藏
- 关注
转载 how to screenshot in appium+serenity
public void screenshot(final String path_screenshot) throws IOException { String contextName = this.driver.getContext(); this.driver.context("NATIVE_APP"); File srcFi...
2017-11-03 15:06:00
159
转载 Array.prototype.reduce()
原文出处:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce语法:arr.reduce(callback,[initialValue])var total = [0, 1, 2, 3].reduce(function(sum, value)...
2017-08-11 11:39:00
117
转载 jQuery中遇到的exec()解析
var i = /^#[\w\-]*$/,a="#root";console.log(i.exec(a))// ["#root", index: 0, input: "#root"]正则表达式exec()函数:exec() 方法用于检索字符串中的正则表达式的匹配。返回值是一个数组,但是此数组的内容和正则对象是否是全局匹配有着很大关系:1.没有g修饰符:在非...
2017-07-05 12:10:00
339
转载 jquery阅读记录2
var f = function(){ var e = function(a, b) { return new e.fn.init(a,b,h) } e.extend(); return e; }(); f.support = function() { f(function(){});...
2017-06-20 11:24:00
129
转载 JQuery源码阅读记录
新建html文件,在浏览器中打开文件,在控制台输入consoole.log(window);新建html文件,引入JQuery后在浏览器中打开,在控制台同样输入consoole.log(window);会发现window下多了$(jquery)对象。 1.(function(a, b){})(window)自运行; 2.var c = a.document , ...
2017-06-16 15:03:00
98
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人