783访问人次
Camila Waz 2022-03-04 10:29:11
72
67
2021-12-13 15:49:59 67阅读 0喜欢
let dom = document.querySelector('textarea')
    dom.onkeydown = function(e){
        console.log(e.key)
        console.log(e.code)
        console.log(e.keyCode)

    if(e.keyCode == 13){
        e.returnValue = false
        console.log('禁用enter事件')
    }
}
2021-12-09 09:57:54 61阅读 0喜欢
83
2021-06-15 17:14:53 83阅读 0喜欢
<iframe id="pdf" name="pdf" 
      src="static/web/viewer.html?file=compressed.tracemonkey-pldi-09.pdf" 
      style="width:100%; height:500px">
</iframe>
63
2021-06-15 14:09:25 63阅读 0喜欢
<div id="text">good1230.com-专注于网站排名优化博客建站系统和好文分享</div>

let context = document.getElementById("text")
context.addEventListener('mouseup',() => {
    const selection = window.getSelection()
    const text = selection.toString()
})
2020-09-23 17:23:14 111阅读 0喜欢