jquery点击复制

/*点击复制*/
$(".copycode").delegate("img","click",function(){
var password = $(this).parent().parent().find("#password");
password.select(); // 选择对象
document.execCommand("Copy"); // 执行浏览器复制命令
mui.alert("已复制好,可粘贴。");
});

posted @ 2017-11-24 18:19  Monroe_Yu  阅读(358)  评论(0编辑  收藏  举报