JavascriptExecutor js1 = (JavascriptExecutor) driver; //处理时间弹出框选择时间 js1.executeScript("document.getElementById('wbinterviewdate').readOnly=false;"); / ...
分类:
其他好文 时间:
2017-10-16 14:56:11
阅读次数:
112
js操作css之增加/修改/删除: 1:document.getElementByClassName[“model”][0].className = 新的类名 2:document.getElementByClassName[“model”][0].setAttribute("class",新的类名 ...
分类:
Web程序 时间:
2017-10-16 11:08:10
阅读次数:
147
Given an array of integers sorted in ascending order, find the starting and ending position of a given target value. Your algorithm's runtime complexi ...
分类:
其他好文 时间:
2017-10-16 09:41:05
阅读次数:
118
将日志的error和info分别打印输出,以便于查看### set log levels ### log4j.rootLogger=info,error,info log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appende... ...
分类:
其他好文 时间:
2017-10-15 21:16:10
阅读次数:
187
组件api说明 1、依赖move.js,组件前一定要引入move.js 2、轮播图需要有一个父级,这个父级一定要给一个id 默认参数: this.settings={ id:'pic', //轮播图父级的id, 必需传的参数 autoplay:true, //自动播放, true为自动,false为 ...
分类:
其他好文 时间:
2017-10-15 19:45:55
阅读次数:
168
修改用户账户及cookie配置 一、修改密码强度和用户邮箱验证规则: 打开Startup.cs,找到public void ConfigureServices(IServiceCollection services)中的services.AddIdentity<ApplicationUser, Ap ...
分类:
Web程序 时间:
2017-10-15 19:25:27
阅读次数:
206
一、DOM节点 1.获取子节点: childNodes nodeType 节点类型 children 只包括元素,不包括文本; 子节点只算第一层。只算孩子一级。 <!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>无标题文档</ti ...
分类:
Web程序 时间:
2017-10-15 14:59:17
阅读次数:
177
使用场景 现在很多基于restful的api接口都有个登录的设计,也就是在发起正式的请求之前先通过一个登录的请求接口,申请一个叫做token的东西。申请成功后,后面其他的支付请求都要带上这个token,服务端通过这个token验证请求的合法性。这个token通常都有一个有效期,一般就是几个小时。 比 ...
分类:
其他好文 时间:
2017-10-15 14:11:43
阅读次数:
261
前言: 我们知道使用opacity可以实现透明效果,兼容语句是:filter:alpha(opacity=0~100);但是它具有父子继承特性,怎么实现我们想要的效果呢? 方法一:运用CSS3的属性rgba(R,G,B,A),IE8以上的版本可以达到我们的要求: R:红色值。正整数 | 百分数 G: ...
分类:
其他好文 时间:
2017-10-14 22:39:20
阅读次数:
222
//短信操作var wait=60;function time() { var code = document.getElementById('code_send'); if (wait == 0) { code.removeAttribute("disabled"); code.innerHTML ...
分类:
其他好文 时间:
2017-10-14 18:33:55
阅读次数:
150