当前位置:网站首页>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,
});
边栏推荐
- [shutter] shutter layout component (opacity component | clipprect component | padding component)
- MySQL learning record (6)
- Secondary development of ANSYS APDL: post processing uses command flow to analyze the result file
- Analysis of enterprise financial statements [3]
- China microporous membrane filtration market trend report, technological innovation and market forecast
- 关于测试用例
- Gee: (II) resampling the image
- Find objects you can't see! Nankai & Wuhan University & eth proposed sinet for camouflage target detection, and the code has been open source
- Read a doctor, the kind that studies cows! Dr. enrollment of livestock technology group of Leuven University, milk quality monitoring
- [Jianzhi offer] 56 - ii Number of occurrences of numbers in the array II
猜你喜欢
Structure array, pointer and function and application cases
*C语言期末课程设计*——通讯录管理系统(完整项目+源代码+详细注释)
地理探测器原理介绍
Basic IO interface technology - microcomputer Chapter 7 Notes
A specially designed loss is used to deal with data sets with unbalanced categories
Three chess games
Redis distributed lock failure, I can't help but want to burst
Read a doctor, the kind that studies cows! Dr. enrollment of livestock technology group of Leuven University, milk quality monitoring
Five message formats of OSPF
发现你看不到的物体!南开&武大&ETH提出用于伪装目标检测SINet,代码已开源!...
随机推荐
[zero foundation I] Navicat download link
Gee: (II) resampling the image
Plastic granule Industry Research Report - market status analysis and development prospect forecast
Research Report on market supply and demand and strategy of China's right-hand outward rotation entry door industry
Construction and maintenance of business websites [6]
Golang embeds variables in strings
The neo4j skill tree was officially released to help you easily master the neo4j map database
Analysis of enterprise financial statements [2]
Accounting regulations and professional ethics [16]
Research Report on micro vacuum pump industry - market status analysis and development prospect prediction
Analysis of enterprise financial statements [3]
[shutter] shutter layout component (opacity component | clipprect component | padding component)
Find objects you can't see! Nankai & Wuhan University & eth proposed sinet for camouflage target detection, and the code has been open source
Research Report on market supply and demand and strategy of China's atomic spectrometer industry
如何防止你的 jar 被反编译?
Cloud computing technology [1]
:last-child 不生效解决
Summary of the first week of summer vacation
~91 rotation
发现你看不到的物体!南开&武大&ETH提出用于伪装目标检测SINet,代码已开源!...