如何使用document.execCommand方法为所选文本创建电子邮件链接 最佳答案 以下将起作用:document.execCommand("CreateLink", false, "mailto:someone@example.com");