提取自土豆的点击鼠标自动复制URL代码

index.htm





1.js

function copyText(id) {
try{
var targetText = document.getElementById(id);
targetText.focus();
targetText.select();
var clipeText = targetText.createTextRange();
clipeText.execCommand(“Copy”);
}catch(e){}
}

//Navigation&Global
$(function(){
try{
initHover();
initMsg();
setTimeout(initQuick,200)
}catch(e){}
})
———————————————-

You May Also Like

About the Author: 邢磊

发表评论

您的电子邮箱地址不会被公开。