当前位置:网站首页>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,
});
边栏推荐
- GEE:(二)对影像进行重采样
- [shutter] shutter layout component (wrap component | expanded component)
- Interpretation of CVPR paper | generation of high fidelity fashion models with weak supervision
- 地理探测器原理介绍
- pyqt图片解码 编码后加载图片
- Research Report on crude oil tanker industry - market status analysis and development prospect forecast
- [shutter] shutter page Jump (route | navigator | page close)
- ~90z axis translation
- 【剑指 Offer】56 - I. 数组中数字出现的次数
- D4: unpaired image defogging, self enhancement method based on density and depth decomposition (CVPR 2022)
猜你喜欢

Analysis of neural network

MySQL learning record (4)

Off chip ADC commissioning record

Three chess games

Technical solution of vision and manipulator calibration system

Structure array, pointer and function and application cases

Read a doctor, the kind that studies cows! Dr. enrollment of livestock technology group of Leuven University, milk quality monitoring

基本IO接口技术——微机第七章笔记
![[zero foundation I] Navicat download link](/img/23/e7808884152eeaf186fe756d6adac6.png)
[zero foundation I] Navicat download link
![[use of pointer and pointer and array]](/img/dd/8017215c54aebcdf5c67e46e795d3b.jpg)
[use of pointer and pointer and array]
随机推荐
Plastic granule Industry Research Report - market status analysis and development prospect forecast
Cardinality sorting (detailed illustration)
Download vagrant box file locally from Atlas and configuring it
MySQL learning record (3)
地理探测器原理介绍
tinymce可视化编辑器增加百度地图插件
MySQL learning record (9)
Free open source web version of xshell [congratulations on a happy new year]
Unexpectedly, there are such sand sculpture code comments! I laughed
Research Report on micro gripper industry - market status analysis and development prospect prediction
Blue Bridge Cup Winter vacation homework (DFS backtracking + pruning)
Structure array, pointer and function and application cases
Blue Bridge Cup Eliminate last one (bit operation, code completion)
Centos7 installation and configuration of redis database
【剑指 Offer】57. 和为s的两个数字
MySQL learning record (4)
B.Odd Swap Sort(Codeforces Round #771 (Div. 2))
#include<>和#include“”的区别
:last-child 不生效解决
Baidu sued a company called "Ciba screen"