我们在使用selenium 查找元素的时候,为了避免网页加载慢,会加一个sleep(x秒) 这样能解决加载慢的问题,但也存在2个问题 1.如果你设置的等待时间过了,还没加载出来,就会报“NoSuchElementException” 2.如果设置等待5秒,2秒就加载出来了,也还是会再等3秒,这样影响 ...
分类:
Web程序 时间:
2020-01-03 10:45:01
阅读次数:
128
媒体查询代码,一般是表示只有在屏幕尺寸小于或大于某某像素才应用某一样式 例如: <meta name="viewport" content="width=device-width, initial-scale=1"/> @media only screen and (max-width:639px) ...
分类:
其他好文 时间:
2020-01-03 00:43:44
阅读次数:
75
一、 下载个anaconda。地址:https://www.continuum.io/downloads。下载Anaconda3-5.1.0-Linux-x86_64.sh,注:本机为64位系统。 二、上传Anaconda3-5.1.0-Linux-x86_64.sh至虚拟机centOS7的home ...
分类:
其他好文 时间:
2020-01-02 22:46:13
阅读次数:
122
KiCad里Pcbnew中各层的使用说明 Kicad里Pcbnew提供了至多50个层供电路板设计师使用。 总计32个铜层供导线走线(可覆铜) 总计14个固定用途技术层 12个技术层对(上技术层和下技术层对称),包括Adhesive, Solder Paste, Silk Screen, Solder ...
分类:
其他好文 时间:
2019-12-31 14:13:59
阅读次数:
455
BOM与DOM 一、前戏 BOM操作 window对象 二、window的子对象 navigator对象(了解即可) screen对象(了解即可) history对象(了解即可) location对象 弹出框 三、计时相关 通过使用 JavaScript,我们可以在一定时间间隔之后来执行代码,而不是 ...
分类:
其他好文 时间:
2019-12-30 23:31:27
阅读次数:
148
public videofull() { //全屏播放视频 var _this = this; _this.video = document.getElementById('homeVideo'); //视频 _this.btnFullScreen = document.getElementById ...
分类:
其他好文 时间:
2019-12-30 22:56:08
阅读次数:
108
Why Launch X431 PRO MINI Bluetooth better than X431 Diagun 3 Some customers said that there have new released Launch X431 Pro MINI from launch company ...
分类:
其他好文 时间:
2019-12-30 21:30:16
阅读次数:
88
window对象 window的子对象 navigator对象 浏览器对象,通过这个对象可以判定用户所使用的浏览器,包含了浏览器相关信息。 screen对象 history对象 location对象 弹出框 计时相关 setTimeout() 语法: setTimeout() 方法会返回某个值。在上 ...
分类:
其他好文 时间:
2019-12-30 19:36:07
阅读次数:
80
初次认识decorator和@property Welcome. 在本文中,将详细学习如何使用Python中的decorator和@property。 将会学习的内容: 使用decorator的优势。 使用@property的优势。 装饰器函数的基础知识:它们是什么以及如何与@property关联起 ...
分类:
编程语言 时间:
2019-12-30 12:58:33
阅读次数:
93