Button 代码添加按钮SMS Whatsapp和电子邮件

Button 代码添加按钮SMS Whatsapp和电子邮件,button,share,Button,Share,我几个星期试图添加按钮短信Whatsapp和电子邮件在可湿性粉剂的主题,但我有错误 window.open(link, 'sharer', 'top=' + winTop + ',left=' + winLeft + ',toolbar=0,status=0,width='+winWidth+',height='+winHeight); } function eh_get_fburl(title, descr, url){ return 'http://www.facebook.com/s

我几个星期试图添加按钮短信Whatsapp和电子邮件在可湿性粉剂的主题,但我有错误

window.open(link, 'sharer', 'top=' + winTop + ',left=' + winLeft + ',toolbar=0,status=0,width='+winWidth+',height='+winHeight);
}

function eh_get_fburl(title, descr, url){
  return 'http://www.facebook.com/share.php?u=' +encodeURIComponent(url)+ '&title=' + encodeURIComponent(title);
}

function eh_get_twurl(title, url){
  return 'http://twitter.com/home?status=' + encodeURIComponent(title) + '+' + encodeURIComponent(url);
}

function eh_get_gpurl(url){
  return 'https://plus.google.com/share?url=' + encodeURIComponent(url);
}

function eh_get_lnurl(title, url){
  return 'http://www.linkedin.com/shareArticle?mini=true&url=' + encodeURIComponent(url) + '&title=' + encodeURIComponent(title);
}

function eh_get_waurl(title, url){
  return 'whatsapp CODE' + encodeURIComponent(url) + '&title=' + encodeURIComponent(title);
}

function eh_get_txurl(title, url){
  return 'SMS CODE' + encodeURIComponent(url) + '&title=' + encodeURIComponent(title);
}

function eh_get_emurl(title, url){
  return 'Email CODE" + title + "&body=' + encodeURIComponent(url) + '&title=' + encodeURIComponent(title);
}
whatsapp:

return "whatsapp://send?text="+encodeURIComponent(url)+" "+encodeURIComponent(title)
短信息:

return "sms:my_phone_number?body="+encodeURIComponent(url)+" "+encodeURIComponent(title)
电邮:

return "mailto:?subject="+encodeURIComponent(title)+ "&body="+encodeURIComponent(url)+" "+encodeURIComponent(title)