10 2022 档案

摘要:1、首先查找出元素在数组中的位置即索引(数组中本来就有 indexOf() 方法,方便学习给出代码): Array.prototype.indexOf = function(val) { for (var i = 0; i < this.length; i++) { if (this[i] == v 阅读全文
posted @ 2022-10-30 09:48 奥兰王子 阅读(2560) 评论(0) 推荐(1) 编辑
摘要:[].map.call(document.getElementsByTagName('img'), function (img){ return img.src;}) [].map.call(document.getElementsByTagName('A'), function (img){ re 阅读全文
posted @ 2022-10-28 11:19 奥兰王子 阅读(99) 评论(0) 推荐(0) 编辑
摘要:linux查看上一条命令的执行结果 Echo $? 0 成功 其他失败 汇总:$0 # 脚本启动名(包括路径) $n # 第n个参数,n=1,2,…9 $* # 所有参数列表(不包括脚本本身) $@ # 所有参数列表(独立字符串) $# # 参数个数(不包括脚本本身) $$ # 当前程式的PID $ 阅读全文
posted @ 2022-10-14 16:14 奥兰王子 阅读(2327) 评论(0) 推荐(0) 编辑
摘要:什么是 RESTful 什么是REST REST(英文:Representational State Transfer,又称具象状态传输)是Roy Thomas Fielding博士于2000年在他的博士论文 中提出来的一种万维网软件架构风格,目的是便于不同软件/程序在网络(例如互联网)中互相传递信 阅读全文
posted @ 2022-10-13 11:06 奥兰王子 阅读(425) 评论(0) 推荐(0) 编辑
摘要:httpbin.org 这个网站能测试 HTTP 请求和响应的各种信息,比如 cookie、ip、headers 和登录验证等,且支持 GET、POST 等多种方法,对 web 开发和测试很有帮助。 它用 Python + Flask 编写,是一个开源项目。 官方网站:http://httpbin. 阅读全文
posted @ 2022-10-12 13:25 奥兰王子 阅读(59) 评论(0) 推荐(0) 编辑
摘要:https://www.runoob.com/xml/xml-technologies.html XHTML (可扩展 HTML)更严格更纯净的基于 XML 的 HTML 版本。 XML DOM (XML 文档对象模型)访问和操作 XML 的标准文档模型。 XSL (可扩展样式表语言) XSL 包含 阅读全文
posted @ 2022-10-09 15:34 奥兰王子 阅读(36) 评论(0) 推荐(0) 编辑
摘要:var xt = "", h3OK = 1 function checkErrorXML(x) { xt = "" h3OK = 1 checkXML(x) } function checkXML(n) { var l, i, nam nam = n.nodeName if (nam == "h3" 阅读全文
posted @ 2022-10-09 11:22 奥兰王子 阅读(60) 评论(0) 推荐(0) 编辑
摘要:一、官方资料 中文版: https://docs.python.org/zh-cn/3/index.html 英文版: https://docs.python.org/3.12/ 分发 Python 模块: https://docs.python.org/zh-cn/3/distributing/i 阅读全文
posted @ 2022-10-07 19:22 奥兰王子 阅读(48) 评论(0) 推荐(0) 编辑
摘要:1、Httpbin介绍 Httpbin是一个使用Python + Flask编写的HTTP Request & Response Service,该服务主要用于测试 HTTP库,你可以向他发送请求,然后他会按照指定的规则将你的请求返回(查看你所发送请求中的信息)。Httpbin支持HTTP/HTTP 阅读全文
posted @ 2022-10-06 20:26 奥兰王子 阅读(478) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/lilongsy/article/details/122140098 import requests res = requests.get("https://www.baidu.com/") res.encoding = res.apparent_enco 阅读全文
posted @ 2022-10-06 15:27 奥兰王子 阅读(100) 评论(0) 推荐(0) 编辑

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