摘要:
1.nodejs运行js的时候 navigator如果找不到可以可设置为空对象 2.使用nodejs如果window对象找不到的时候 可以使用jsdom模块 3.顶层代码调用的对象的this 浏览器里表示window,nodejs中表示object 4.以下获取属性的两种方式 5.xhr相关 6. 阅读全文
摘要:
Array.prototype.slice.call(arguments)能将具有length属性的对象(key值为数字)转成数组。但有一个例外,IE下的节点集合它不能转换(因为IE下的dom对象是以com对象的形式实现,js对象和com对象不能进行转换) slice中文名是截取,在go语言中我们称 阅读全文
该文被密码保护。 阅读全文
摘要:
定义对象然后调用 匿名函数的一种定义 其调用方式是getPassword() 所以可以搜索getPassword(定位 阅读全文
摘要:
``` n = input() pre="" next_str = "" new_str = "" for i in range(int(n)): cur = input() if pre=="" and next_str=="": pre = cur #第一次 new_str = cur else: next_str = cur min_len=min(len(next_str),len(pre 阅读全文
摘要:
![](https://img2018.cnblogs.com/blog/736399/201910/736399-20191019102243853-1976162366.jpg)
![](https://img2018.cnblogs.com/blog/736399/201910/736399-20191019102946628-1923247792.jpg)
![](https://img2... 阅读全文
摘要:
locust f locust_demo.py logfile=locusfile.log 阅读全文
摘要:
查找当前目录里log文件中含有字符串start的文件。 阅读全文
摘要:
JsonPath是一种简单的方法来提取给定JSON文档的部分内容。 JsonPath有许多编程语言,如Javascript,Python和PHP,Java。 JsonPath提供的json解析非常强大,它提供了类似正则表达式的语法,基本上可以满足所有你想要获得的json内容。 Json结构清晰,可读 阅读全文
摘要:
答案 coding: utf 8 自分の得意な言語で Let's チャレンジ!! N=input() w_a=0 w_b=0 gpc_dict={ "gg":0,"cc":0,"pp":0,"gc":1, "cp":1,"cg": 1,"pc": 1, "pg":1,"gp": 1, } for i 阅读全文