摘要:
js获取节点 父: parentNode 获取已知节点的父节点。 子: childNodes; 得到全部子节点 children 得到全部子节点 firstChild 获得第一个子节点 lastChild 获得最后一个子节点 兄弟:previousSibling 获取已知节点的前一个节点 nextSibling 获取已知节点下一个节点 jq获取节点 父: $('#').parent() ... 阅读全文
posted @ 2019-02-23 21:39
anobscureretreat
阅读(303)
评论(0)
推荐(0)
摘要:
winver---------检查Windows版本 wmimgmt.msc----打开windows管理体系结构 wupdmgr--------windows更新程序 winver---------检查Windows版本 wmimgmt.msc----打开windows管理体系结构 wupdmgr--------windows更新程序 wscript--------window... 阅读全文
posted @ 2019-02-23 16:10
anobscureretreat
阅读(457)
评论(0)
推荐(0)
摘要:
var alert=function(){return 1} var confirm=function(){return 1} var prompt=function(){return 1} 阅读全文
posted @ 2019-02-23 13:33
anobscureretreat
阅读(6120)
评论(0)
推荐(2)
解决UnicodeEncodeError: 'gbk' codec can't encode character u'\u25aa' in position 344 : illegal multiby
摘要:
Python拿来做爬虫的确很不错,但是字符串的编码的确是稍不留神就是一个坑,GBK编码和Unicode编码的转化出现问题也是很多的,今天在解析网页数据的时候出现上述错误,解决方案如下: one_str.encode("GBK","ignore") 由于在windows下的cmd中输出网页数据,加入上 阅读全文
posted @ 2019-02-23 13:32
anobscureretreat
阅读(1537)
评论(0)
推荐(0)
摘要:
js中 ret = 1 == 1 ? 'true' : 'false' ret = 1 == 1 ? 'true' : 'false' ret = 1 == 1 ? 'true' : 'false' ret = 1 == 1 ? 'tr 阅读全文
posted @ 2019-02-23 13:30
anobscureretreat
阅读(353)
评论(0)
推荐(0)
摘要:
在ie6和ff2.0下测试通过。 阅读全文
posted @ 2019-02-23 13:30
anobscureretreat
阅读(9738)
评论(0)
推荐(0)
摘要:
$.ajax({ type:"post", url:url, data:{xxx:xx}, dataType: "json", success : function(data){ window.location.href="跳转的url,后边也可以拼接点data中数据作为参数"; }}); 如果是需要跳转到另外的页面,也可以用window.open(url); ... 阅读全文
posted @ 2019-02-23 13:29
anobscureretreat
阅读(1620)
评论(0)
推荐(0)
摘要:
参考: https://bbs.csdn.net/topics/350058931 阅读全文
posted @ 2019-02-23 13:21
anobscureretreat
阅读(763)
评论(0)
推荐(0)
摘要:
//在页面增加一个放置图标的区块 if(!document.getElementById('_span_jiucuo')) document.write(""); //获取放置图标的区块 var span_msg = document.getElementById("_span_jiucuo"); //获取站点标识码 var sitecode = document.getElem... 阅读全文
posted @ 2019-02-23 13:14
anobscureretreat
阅读(889)
评论(0)
推荐(0)
摘要:
UnicodeEncodeError: 'gbk' codec can't encode character '\u25aa' in position 15: illegal multibyte sequence 阅读全文
posted @ 2019-02-23 13:12
anobscureretreat
阅读(864)
评论(1)
推荐(0)

浙公网安备 33010602011771号