我在标准的 Windows 8 Javascript Store 应用程序中有以下代码:
var test = document.getElementById("testButton");
test.addEventListener("click", function () {
var mailto = new Windows.Foundation.Uri("mailto:?to=my.address@here.com" + "&subject=test" + "&body=Hello,<br>How are you?");
Windows.System.Launcher.launchUriAsync(mailto);
我遇到的问题是,无论我做什么,我都无法在Hello,
and之间获得回车How are you?
。我试过\n
& \r\n
。我需要插入什么来获得回车?