<button type="button" class="mui-btn-click" data-clipboard-text=""/>
<script src="clipboard.min.js"></script>
<script src="jquery-1.9.1.min.js"></script>
<script>
$('.mui-btn-click').attr("data-clipboard-text", b ); // b 处绑定文本
var clipboard = new Clipboard('.mui-btn-click');
clipboard.on('success', function(e) {
alert("复制成功");
});
</script>