08 2022 档案

摘要:将函数矮化成表达式,一次性函数 var foo = function(){ console.log(2) }(); + function(){ console.log(2) }(); - function(){ console.log(2) }(); ! function(){ console.lo 阅读全文
posted @ 2022-08-25 23:06 小高2 阅读(13) 评论(0) 推荐(0) 编辑
摘要:foreach [].foreach(function(item, index, array){ // item: []中的每一个元素对象 // index:[]中每一个元素对象的索引 // array:[]本身 // 循环体 }) 匿名函数 arr = [1,2,3,5,6] arr.filter 阅读全文
posted @ 2022-08-25 22:37 小高2 阅读(64) 评论(0) 推荐(0) 编辑
摘要:文件上传 直接通过send_key上传 通过点击win窗口上传 直接通过send_key上传 这种方法与向input标签中输入文本一样 import time from selenium import webdriver from selenium.webdriver import ActionCh 阅读全文
posted @ 2022-08-23 21:26 小高2 阅读(72) 评论(0) 推荐(0) 编辑
摘要:时间戳 # 获取时间戳 time.time() # 时间元组转为时间戳 time.mktime(time.localtime()) 时间元组 # 获取时间元组 time.localtime() # time.struct_time( # 年月日 # tm_year=2022, tm_mon=8, t 阅读全文
posted @ 2022-08-13 22:54 小高2 阅读(35) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示