chrome 调试跨域iframe
摘要:相关链接:https://stackoverflow.com/questions/3102819/disable-same-origin-policy-in-chrome https://stackoverflow.com/questions/25098021/securityerror-block
阅读全文
chrome 调试参数(鼠标事件)
摘要:1、监听鼠标事件: monitorEvents(document.body, 'mouse') 取消监听: unmonitorEvents(document.body) 原文链接: https://briangrinstead.com/blog/chrome-developer-tools-moni
阅读全文
java script 模拟鼠标事件
摘要:try { var selector1 = "._3-8y:first-child"; var evt = document.createEvent("MouseEvents"); var selector = document.querySelectorAll("._3-8y:first-chil
阅读全文
js ParseUrl
摘要:js ParseUrlfunction parseURL(url) { var a = document.createElement('a'); a.href = url; return { source: url, protocol: a.protocol.replace(':',''), hos
阅读全文
twitter 等网站console.log不能使用,可用alert或者
摘要:function setConsole() { var iframe = document.createElement('iframe'); iframe.style.display = 'none'; document.body.appendChild(iframe); console = ifr
阅读全文
Fb,tw等emoji相关
摘要:最近处理fb emoji,查了下相关的资料。记录于此 twitter blog 关于:https://blog.twitter.com/developer/en_us/a/2014/open-sourcing-twitter-emoji-for-everyone.html 872 emoji. tw
阅读全文
Js 过滤emoji表情...持续补充中..
摘要:原文来自: https://www.cnblogs.com/tsjTSJ/p/7065544.html 最全最详细的用JS过滤Emoji表情的输入 在前端页面开发过程中,总会碰到不允许输入框输入emoji表情的需求,我的思路是通过编码用正则匹配表情,然后将其替换为空字符创。但是问题也是显而易见的,完
阅读全文