ShareQQ() {
var url =
//这个很重要 腾讯QQ分享外部接口
“https://connect.qq.com/widget/shareqq/index.html” +
“?url=” +
encodeURIComponent(window.location.href) +
//分享的网址链接
“&title=” +
encodeURIComponent(“标题”) +
“&source=” +
encodeURIComponent(
//分享的网址前面列如 www.baidu.com
window.location.href.substring(0, window.location.href.indexOf("?"))
) +
“&summary=” +
encodeURIComponent(document.title) +
//描述详情
“&pics=” +
//图片
encodeURIComponent(
“https://wechat.cdzjkl.com/files/options/avatar1584946687810.jpg”
) +
“&desc=” +
//描述
encodeURIComponent("");
var a = document.createElement(“a”);
a.href = url;
a.target = “_blank”;
a.click();
},

PC端QQ分享到好友链接
PC端QQ分享到好友链接

相关文章:

  • 2021-03-31
  • 2021-04-06
  • 2021-10-12
  • 2021-05-01
  • 2022-03-03
  • 2021-05-13
  • 2021-04-26
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2021-12-24
  • 2022-01-07
  • 2021-12-02
相关资源
相似解决方案