当前位置:网站首页>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,
});
边栏推荐
- Redis分布式锁故障,我忍不住想爆粗...
- Huawei Hongmeng watch achieves fireworks display effect on New Year's Eve
- Today, I met a Alipay and took out 35K. It's really sandpaper to wipe my ass. it's a show for me
- 关于测试用例
- D4:非成对图像去雾,基于密度与深度分解的自增强方法(CVPR 2022)
- D4: unpaired image defogging, self enhancement method based on density and depth decomposition (CVPR 2022)
- [shutter] shutter gesture interaction (click event handling | click OnTap | double click | long press | click Cancel | press ontapdown | lift ontapup)
- [sword finger offer] 56 - I. the number of numbers in the array
- treevalue——Master Nested Data Like Tensor
- MySQL learning record (6)
猜你喜欢
![[zero foundation I] Navicat download link](/img/23/e7808884152eeaf186fe756d6adac6.png)
[zero foundation I] Navicat download link

pip安装whl文件报错:ERROR: ... is not a supported wheel on this platform

Technical solution of vision and manipulator calibration system

How is LinkedList added?

Pip install whl file Error: Error: … Ce n'est pas une roue supportée sur cette plateforme

MySQL learning record (3)

Secondary development of ANSYS APDL: post processing uses command flow to analyze the result file

LandingSite eBand B1冒烟测试用例

Basic knowledge of tree and binary tree (detailed illustration)

It is said that this year gold three silver four has become gold one silver two..
随机推荐
Go web programming practice (2) -- process control statement
Get weekday / day of week for datetime column of dataframe - get weekday / day of week for datetime column of dataframe
Analysis of enterprise financial statements [2]
Introduction to victoriametrics
SQL必需掌握的100个重要知识点:管理事务处理
Construction and maintenance of business websites [4]
【零基础一】Navicat下载链接
Research Report on market supply and demand and strategy of China's plastic trunking industry
Five message formats of OSPF
China's crude oil heater market trend report, technological innovation and market forecast
2019 Nanchang (relive the classic)
如何访问kubernetes API?
Research Report on market supply and demand and strategy of China's Plastic Geogrid industry
Read a doctor, the kind that studies cows! Dr. enrollment of livestock technology group of Leuven University, milk quality monitoring
Accounting regulations and professional ethics [17]
[CV] Wu Enda machine learning course notes | Chapter 12
Analysis of enterprise financial statements [3]
【剑指 Offer 】56 - II. 数组中数字出现的次数 II
~90z axis translation
[shutter] statefulwidget component (bottom navigation bar component | bottomnavigationbar component | bottomnavigationbaritem component | tab switching)