QVector <double> data {11.0, 44.0, 22.0, 33.0, 10.0,65.0};//表示最大值: auto max = std::max_element(std::begin(data), std::end(data)); //最小值表示: auto min = ...
分类:
其他好文 时间:
2020-02-25 18:27:50
阅读次数:
89
多个不同输入框共用一个方法时使用useCallback: params = initParams = {code: "code_test", name: "name_test"} const onInputChange = React.useCallback((e: React.ChangeEven ...
分类:
其他好文 时间:
2020-02-25 18:14:20
阅读次数:
60
最近研究前端,那么,Element很美丽。 直接会调节官网Element加载慢,所以“镜像”到了这里。 按照时间线,在https://www.cnblogs.com/7086cmd/tag/Element_Teach/里面会更新。之后会添加索引。 ...
分类:
其他好文 时间:
2020-02-25 09:59:02
阅读次数:
62
When you give an element an id attr, it will automaticlly create a object with the same name of id: <form id="theform" action="/" method="post"> <labe ...
分类:
Web程序 时间:
2020-02-25 09:23:13
阅读次数:
65
\ Asynchronous JavaScript and Xml \ 直译中文 javascript和XML的异步 \ (不严格的定义)客户端与服务器端进行交互,而无需刷新当前页面的技术,称之为Ajax。 \ Ajax实现的是B/S架构下的异步交互 \ 实现异步交互的技术: \ 元素 \ 同步与异 ...
分类:
Web程序 时间:
2020-02-25 00:17:08
阅读次数:
108
效果图: 使用: 1.<template> <el-header style="height: 61px" > <el-menu mode = "horizontal" background-color = "#76c7f4" text-color = "#000000" active-text-c ...
分类:
其他好文 时间:
2020-02-24 23:46:29
阅读次数:
432
aa=wd.find_elements_by_xpath('//a') for a in aa: print(a.text) #显示所有A标签中文本 aa=wd.find_elements_by_xpath('//a') for a in aa: print(a.get_attribute("hre ...
分类:
Web程序 时间:
2020-02-24 20:40:56
阅读次数:
65
最近爬取一个报表的数据,里面有个INPUT元素,没有ID,NAME,CLASS是重复使用的。没有办法,只好学习by_xpath的详细用法; from selenium import webdriver from selenium.webdriver.common.keys import Keys # ...
分类:
其他好文 时间:
2020-02-24 15:14:05
阅读次数:
58
rem 只与 html 的 font-size 有关,比如html{font-size: 16px} body{font-size: 62.5%},那么 1rem 还是 16px,与其他无关 在头部引入下面这段 js ,会根据屏幕宽度自动设置 html 的 font-size,设计图若是 750px ...
分类:
移动开发 时间:
2020-02-24 15:06:53
阅读次数:
85
B(block) 块是指页面中的相对独立的模块或是组件,比如header是一个block,其中的输入框也是一个block,block之间可以进行嵌套 BEM中如果存在多个单词的情况,都使用中线-连接。 E(element) 指块中的子元素,比如header的标题和内容,需要使用父级block命名作为 ...
分类:
其他好文 时间:
2020-02-24 13:21:41
阅读次数:
46