package LeetCode_496 /** * 496. Next Greater Element I * https://leetcode.com/problems/next-greater-element-i/description/ * * You are given two array ...
分类:
其他好文 时间:
2020-05-26 22:09:23
阅读次数:
112
Dom DOM基础 文档对象模型 Element attribute text 获取元素节点 older forms links achors images 表单,写表单name,尽量写 表单元素 document.[formName] 表单字段(域) formElement.[formFieled ...
分类:
Web程序 时间:
2020-05-26 20:39:23
阅读次数:
87
var result_arr = []; let dom = document.getElementById('canvas'), ctx = dom.getContext('2d'); var img = new Image(); img.src = '../images/logo.png'; i ...
分类:
其他好文 时间:
2020-05-26 18:42:07
阅读次数:
152
element:只返回匹配到的第一个元素,且找不到就报错 方法一:通过id属性定位 ''' #通过id属性定位 textElement = driver.find_element_by_id('abc') #获取元素文本值,text获取的是标签对中间的值 print(textElement.text ...
分类:
其他好文 时间:
2020-05-26 18:40:15
阅读次数:
76
// 封装优先级队列 function PriorityQueue() { function QueueElement(element, priority) { this.element = element this.priority = priority } // 封装属性 this.items ...
分类:
其他好文 时间:
2020-05-26 01:19:35
阅读次数:
64
一. 元素查找 - get 1. get 相当于 selenium 中的 find_element_by_css & find_elements_by_css 2. css 的所有 selector 均可以放在 get里查找 3. 示例: 描述 在 Cypress 中的使用(单个/多个元素) 在 S ...
分类:
其他好文 时间:
2020-05-25 23:40:33
阅读次数:
541
img标签,当src的url404时 1、使用默认图片代替 <img style="margin-left: 40px;width: 130px;height: 130px;" :src="url" @error="nofindImg()"/> nofindImg(){ let img = even ...
分类:
其他好文 时间:
2020-05-25 19:43:28
阅读次数:
199
一、集合框架 1.数组和集合都是容器,两者有什么区别呢? 数组长度是固定的,数组可以存储对象,可以存储基本数据类型。 集合长度是可变的,集合只能存储对象。 2.为什么出现这么多容器呢? 因为每一个容器对数据的存储方式不一样,这个存储方式被称为数据结构。 二、常用方法 2.1 增加、删除 import ...
分类:
编程语言 时间:
2020-05-25 16:09:54
阅读次数:
61
<?php$tests = array( "sdas"=>13);foreach ($tests as $element) { if (is_numeric($element)) { echo "'{$element}' is numeric", PHP_EOL; } else { echo "'{ ...
分类:
编程语言 时间:
2020-05-25 16:06:55
阅读次数:
97
Cascader 级联选择器 发现在很多的CRM管理系统里面,都有不少页面是用到这种级联选择器的,确实,功能很实用, 不过要设置默认值则应该让不少人头痛,因为你选择的时候 @change 事件的参数就是选中的值,一个二维数组,这个很简单就获得了。不过要设置默认参数,让 el-cascader 显示默 ...
分类:
其他好文 时间:
2020-05-25 15:50:16
阅读次数:
424