hljs.highlightAll()
函数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事件')
}
}
<iframe id="pdf" name="pdf"
src="static/web/viewer.html?file=compressed.tracemonkey-pldi-09.pdf"
style="width:100%; height:500px">
</iframe>
<div id="text">good1230.com-专注于网站排名优化博客建站系统和好文分享</div>
let context = document.getElementById("text")
context.addEventListener('mouseup',() => {
const selection = window.getSelection()
const text = selection.toString()
})