4

我有以下应该打开的javascript函数(在我们的例子中是lotus notes),并带有预填充的电子邮件。

function emailpage() {
    strTitle = document.title;
    strTitle = strTitle.replace("&","-");
    window.location = "mailto:" + "?subject=I thought this link might interest you." + "&body=" + strTitle + " - " + window.location;
}

但相反,我得到了这个:

在此处输入图像描述

4

1 回答 1

4

更换正文和主题应该可以帮助您:

function emailpage() {
    strTitle = document.title;
    strTitle = strTitle.replace("&","-");
    window.location = "mailto:?body=" + strTitle + " - " + window.location + "&subject=I thought this link might interest you.";
}
于 2013-07-23T08:07:06.340 回答