# 该方法用来确认元素是否存在,如果存在返回flag=true,否则返回false def isElementExist(self,element): flag=True try: driver.find_element_by_css_selector(element) return flag ex ...
分类:
其他好文 时间:
2020-06-29 11:57:42
阅读次数:
141
IOS active 状态失效问题 失效原因 By default, Safari Mobile does not use the :active state unless there is a touchstart event handler on the relevant element or ...
分类:
移动开发 时间:
2020-06-29 00:21:02
阅读次数:
69
else if (element.className) {// a b c => .a.b.c return "." + element.className.split(' ').filter(item => !!item).join('.'); ...
分类:
其他好文 时间:
2020-06-29 00:04:39
阅读次数:
60
Form表单中的参数 :model 绑定的是表单的数据对象 :rules 是表单的验证规则对象 ref 是当前表单组件的引用对象 el-from-item 的 prop属性: 专门用来指定校验规则 所有的校验规则都在:rules 所绑定的对象中定义 Form 方法 重置/清空 的方法 resetFo ...
分类:
其他好文 时间:
2020-06-28 22:36:03
阅读次数:
99
题外话 好久没更新博客了,不是因为最近没在学习,而是最近学的多了,感觉记流水账式的博文是在污染网络,以后的博文都会是网上不好找或找不到的问题 正文 在使用ng-zorro时利用cdk-virtual-scroll-viewport 这个标签做虚拟滚动时报了错,虽然只是在控制台报错,不影响实际显示结果 ...
分类:
其他好文 时间:
2020-06-28 19:03:45
阅读次数:
180
vue.js实现切换式轮播图 HTML部分 <body> <div id="app"> <div id="banner"> <div id="imglist"> <a href="" v-for="(item,index) in Rot_a" :key="index"><img :src="item ...
分类:
Web程序 时间:
2020-06-28 18:40:47
阅读次数:
142
方法有很多种 自定义类名 <el-button class="search_button" @click="search">查询</el-button> .search_button { color: #ffffff; background: #15ac86; border: none; borde ...
分类:
其他好文 时间:
2020-06-28 15:25:07
阅读次数:
145
每日思考一遍人生,还是要学习的 0x01 web 1、计算器-1 源码: 1 #!/usr/bin/env python3 2 # -*- coding: utf-8 -*- 3 from flask import Flask, render_template, request,session 4 ...
分类:
其他好文 时间:
2020-06-28 15:19:09
阅读次数:
51
想给百度云视频加速,可是 shadow-root (closed) 下的元素没有办法访问和修改。所以video获取不到,想了半天,发现可以往里面加html代码来实现元素访问。实现原理,element 对象的两个属性parentNode 返回父级元素firstChild 返回元素的首个子元素 chor ...
分类:
其他好文 时间:
2020-06-28 09:43:53
阅读次数:
86