<html> <body> <script> var formattedBody = "FirstLine \n Second Line \n Third Line"; var mailToLink = "mailto:[email protected]?body=" + encodeURIComponent(formattedBody); window.location.href = mailToLink; </script> </body> </html>
window下默认是outlook
也可以上chrome的plugin market下载mailto插件
原文地址:https://www.cnblogs.com/coolyylu/p/9588470.html
时间: 2024-10-19 04:21:38