微信点击复制

时间:2017-11-24 20:11:30   收藏:0   阅读:310

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

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!