当前位置:网站首页>Record the functions of sharing web pages on wechat, QQ and Weibo
Record the functions of sharing web pages on wechat, QQ and Weibo
2022-07-02 21:48:00 【Bug pill】
Record wechat 、QQ、 Share on Weibo web Web page function
Share to QQ, Generate a QR code , Scan the code to enter the web page
const url = "https://www.mi.com/?masid=2701.0318"; // URL to share
const summary = " Your shared description ";
const title = " This is the title of the share ,just test share"; // Shared title
const params =
"url=" +
encodeURI(url) +
"&title=" +
encodeURI(title) +
"&summary=" +
encodeURI(summary);
// Share to QQ, Generate a QR code , Scan the code to enter the website
var urlData = "http://connect.qq.com/widget/shareqq/index.html?" + params;
Share to qq Space
const url = "https://www.mi.com/?masid=2701.0318"; // URL to share
const desc = " Your shared description ";
const title = " This is the title of the share ,just test share"; // Shared title
const params =
"url=" +
encodeURI(url) +
"&title=" +
encodeURI(title)
"&desc=" +
encodeURI(desc);
var urlData =
"https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?" + params;
window.open(urlData, "_blank");
Share to Sina Weibo news
const url = "https://www.mi.com/?masid=2701.0318"; // URL to share
const title = " This is the title of the share ,just test share"; // Shared title
const params =
"url=" +
encodeURI(url) +
"&sharesource=weibo" +
"&title=" +
encodeURI(title);
var urlData = "http://service.weibo.com/share/share.php?" + params;
window.open(urlData, "_blank");
Share to wechat
utilize qrcode Generate qr code , Wechat scanning code to enter the web page
npm i qrcodejs2
import QRCode from "qrcodejs2"
const codeBox = document.querySelector(".wxShareCode");
console.log(codeBox);
const qrcode = new QRCode(codeBox, {
text: "https://www.mi.com/?masid=2701.0318",
width: 200,
height: 200,
colorDark: "#000000",
colorLight: "#ffffff",
correctLevel: QRCode.CorrectLevel.H,
});
边栏推荐
- 2019 Nanchang (relive the classic)
- Analysis of neural network
- Research Report on micro vacuum pump industry - market status analysis and development prospect prediction
- Construction and maintenance of business websites [7]
- [zero foundation I] Navicat download link
- Download vagrant box file locally from Atlas and configuring it
- Accounting regulations and professional ethics [18]
- :last-child 不生效解决
- [shutter] statefulwidget component (floatingactionbutton component | refreshindicator component)
- Basic IO interface technology - microcomputer Chapter 7 Notes
猜你喜欢
![[shutter] shutter layout component (physicalmodel component)](/img/6a/f8161fb7c8e9012456622f1920da64.gif)
[shutter] shutter layout component (physicalmodel component)
![[shutter] statefulwidget component (image component | textfield component)](/img/4b/8e54607939989f994303ce5d922331.gif)
[shutter] statefulwidget component (image component | textfield component)

Basic IO interface technology - microcomputer Chapter 7 Notes

基本IO接口技术——微机第七章笔记

图像基础概念与YUV/RGB深入理解
![[zero foundation I] Navicat download link](/img/23/e7808884152eeaf186fe756d6adac6.png)
[zero foundation I] Navicat download link

MySQL learning record (3)

Today, I met a Alipay and took out 35K. It's really sandpaper to wipe my ass. it's a show for me

VictoriaMetrics 简介

Redis分布式锁故障,我忍不住想爆粗...
随机推荐
Construction and maintenance of business website [5]
China's Micro SD market trend report, technology dynamic innovation and market forecast
Research Report on micro gripper industry - market status analysis and development prospect prediction
Analysis of enterprise financial statements [3]
Micro SD Card Industry Research Report - market status analysis and development prospect forecast
Research Report on market supply and demand and strategy of China's plastic trunking industry
Analysis of enterprise financial statements [1]
pip安装whl文件报错:ERROR: ... is not a supported wheel on this platform
VIM command-t plugin error: unable to load the C extension - VIM command-t plugin error: could not load the C extension
Construction and maintenance of business website [3]
读博士吧,研究奶牛的那种!鲁汶大学 Livestock Technology 组博士招生,牛奶质量监测...
MySQL learning record (5)
[shutter] shutter page Jump (route | navigator | page close)
Analysis of enterprise financial statements [4]
Detailed explanation of OSI seven layer model
Plastic granule Industry Research Report - market status analysis and development prospect forecast
Off chip ADC commissioning record
发现你看不到的物体!南开&武大&ETH提出用于伪装目标检测SINet,代码已开源!...
Go web programming practice (2) -- process control statement
Construction and maintenance of business website [1]