📅  最后修改于: 2022-03-11 15:02:07.305000             🧑  作者: Mango
var dummyContent = "this is to be copied to clipboard";
var dummy = $('').val(dummyContent).appendTo('body').select()
document.execCommand('copy')