- 博客(0)
- 资源 (5)
- 收藏
- 关注
移动+PC中JS自动复制
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
[removed][removed]
复制内容
[removed]
var btn = document.getElementById('btn');
var clipboard = new Clipboard(btn);
clipboard.on('success', function(e) {
console.log(e);
location.href ="alipays://platformapi";
});
clipboard.on('error', function(e) {
console.log(e);
});
[removed]
2018-01-04
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人