在某些浏览器/环境中,使用document.execCommand可能是可行的,但不应该依赖它,最好找到另一种解决方案。 为了后世纪录: document.execCommand('paste', false, null);