$('#copyOutTradeNo').click(function () {
var text = document.createElement('textarea')
text.value = $('#out_trade_no').html();
document.body.appendChild(text)
text.select()
document.execCommand('copy')
text.remove()
layer.msg('复制成功')
})
jquery实现点击复制文本信息
最新推荐文章于 2024-01-05 17:00:07 发布