摘要:
1 function sleep(milliseconds) { 2 var start = new Date().getTime(); 3 for (var i = 0; i milliseconds){ 5 break; 6 } 7 } 8 } other version to see https://stackoverflow.com/questio...
阅读全文
posted @ 2018-02-11 11:51
bug_x
阅读(176)
推荐(0)
摘要:
https://github.com/electron/electron/issues/5005
阅读全文
posted @ 2018-02-09 17:42
bug_x
阅读(740)
推荐(0)
摘要:
javascript原生的api本来就支持,Base64,但是由于之前的javascript局限性,导致Base64基本中看不中用。当前html5标准正式化之际,Base64将有较大的转型空间,对于Html5 Api中出现的如FileReader Api, 拖拽上传,甚至是Canvas,Video截
阅读全文
posted @ 2018-02-01 14:58
bug_x
阅读(421)
推荐(0)
摘要:
一、鼠标事件监控: /* * Copyright (C) 2007 Apple Inc. All rights reserved. * Copyright (C) 2013 Google Inc. All rights reserved. * * Redistribution and use in
阅读全文
posted @ 2018-02-01 10:04
bug_x
阅读(683)
推荐(0)
摘要:
var o = document.querySelectorAll("a[href='baidu.com']"); var p = o[o.length-1];console.log('i',o.length); console.log(p); if(p !== undefined){ while
阅读全文
posted @ 2018-01-29 18:58
bug_x
阅读(400)
推荐(0)
摘要:
down voteaccepted Cheap and insecure answer: Add process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"; in code, before calling https.request() A more secure
阅读全文
posted @ 2018-01-17 13:29
bug_x
阅读(234)
推荐(0)
摘要:
相关链接:https://stackoverflow.com/questions/3102819/disable-same-origin-policy-in-chrome https://stackoverflow.com/questions/25098021/securityerror-block
阅读全文
posted @ 2018-01-12 10:52
bug_x
阅读(1359)
推荐(0)
摘要:
1、监听鼠标事件: monitorEvents(document.body, 'mouse') 取消监听: unmonitorEvents(document.body) 原文链接: https://briangrinstead.com/blog/chrome-developer-tools-moni
阅读全文
posted @ 2018-01-12 10:31
bug_x
阅读(400)
推荐(0)
摘要:
try { var selector1 = "._3-8y:first-child"; var evt = document.createEvent("MouseEvents"); var selector = document.querySelectorAll("._3-8y:first-chil
阅读全文
posted @ 2018-01-12 10:29
bug_x
阅读(248)
推荐(0)
摘要:
. adb设置模拟器属性imei、imsi、手机号、sim卡号2. adb设置充电模式3. 开启|关闭飞行模式4. 获取所有已安装程序apk路径和包名5. adb对指定设备执行指令6. 安装应用7. 删除应用数据8. 卸载应用9. 启动应用10. 关闭应用11. 查看apk的Activity类名12
阅读全文
posted @ 2018-01-03 13:44
bug_x
阅读(467)
推荐(0)