![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tool
Mozzie晓风残月
i am code
展开
-
js performance.timing:利用performance.timing进行性能分析
window.onload = function(){ setTimeout(function(){ let t = performance.timing console.log('DNS查询耗时 :' + (t.domainLookupEnd - t.domainLookupStart).t...原创 2019-08-19 16:42:25 · 1282 阅读 · 0 评论 -
js 禁止右键、选择、复制
['contextmenu', 'selectstart', 'copy'].forEach(function(ev){ document.addEventListener(ev, function(event){ return event.returnValue = false }) });原创 2019-08-19 16:38:30 · 192 阅读 · 0 评论