2011-08-28 77 views
-2

我怎麼會增加無功鮑勃此電子郵件的正文?一個變量添加到一個javascript電子郵件

var bob; 
function sendMail() { 
var link = "mailto:YourEmailHere" 
     + "?cc=" 
     + "&subject=App Build Link Buit With MWFPRO's App Build Tool" 
     + "&body=Hi" 
; 

window.location.href = link; 
} 

回答

3
var name = "Bob"; 
function sendMail() { 
var link = "mailto:YourEmailHere" 
    + "?cc=" 
    + "&subject=App Build Link Buit With MWFPRO's App Build Tool" 
    + "&body=Hi " + name + ","; 
; 
相關問題