当前位置:网站首页>记录一下微信、QQ、微博分享web网页功能
记录一下微信、QQ、微博分享web网页功能
2022-07-02 21:33:00 【bug丸】
记录一下微信、QQ、微博分享web网页功能
分享至QQ,生成一个二维码,扫码进入网页
const url = "https://www.mi.com/?masid=2701.0318"; // 需要分享的网址
const summary = "你的分享描述信息";
const title = "这是分享的标题,just test share"; // 分享的标题
const params =
"url=" +
encodeURI(url) +
"&title=" +
encodeURI(title) +
"&summary=" +
encodeURI(summary);
// 分享至QQ,生成一个二维码,扫码进入网站
var urlData = "http://connect.qq.com/widget/shareqq/index.html?" + params;
分享至qq空间
const url = "https://www.mi.com/?masid=2701.0318"; // 需要分享的网址
const desc = "你的分享描述信息";
const title = "这是分享的标题,just test share"; // 分享的标题
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");
分享至新浪微博动态
const url = "https://www.mi.com/?masid=2701.0318"; // 需要分享的网址
const title = "这是分享的标题,just test share"; // 分享的标题
const params =
"url=" +
encodeURI(url) +
"&sharesource=weibo" +
"&title=" +
encodeURI(title);
var urlData = "http://service.weibo.com/share/share.php?" + params;
window.open(urlData, "_blank");
分享至微信
利用qrcode生成二维码,微信扫码进入网页
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 (physicalmodel component)
- [C language] [sword finger offer article] - replace spaces
- Go cache of go cache series
- Accounting regulations and professional ethics [17]
- The neo4j skill tree was officially released to help you easily master the neo4j map database
- Analysis of enterprise financial statements [2]
- Internet Explorer ignores cookies on some domains (cannot read or set cookies)
- Construction and maintenance of business website [1]
- kernel tty_ struct
- [shutter] statefulwidget component (floatingactionbutton component | refreshindicator component)
猜你喜欢
![[Yu Yue education] reference materials of analog electronic technology of Nanjing Institute of information technology](/img/2f/bb99836bb3ad725483f30531ff4d53.jpg)
[Yu Yue education] reference materials of analog electronic technology of Nanjing Institute of information technology

Structure array, pointer and function and application cases

It is said that this year gold three silver four has become gold one silver two..

Three chess games

Capacity expansion mechanism of ArrayList

Etcd Raft 协议

基本IO接口技术——微机第七章笔记
![[shutter] statefulwidget component (bottom navigation bar component | bottomnavigationbar component | bottomnavigationbaritem component | tab switching)](/img/a7/0b87fa45ef2edd6fac519b40adbeae.gif)
[shutter] statefulwidget component (bottom navigation bar component | bottomnavigationbar component | bottomnavigationbaritem component | tab switching)

Gbase8s database type
![[shutter] shutter layout component (Introduction to layout component | row component | column component | sizedbox component | clipoval component)](/img/45/735431f59a84e9554225a72a551ab8.jpg)
[shutter] shutter layout component (Introduction to layout component | row component | column component | sizedbox component | clipoval component)
随机推荐
A specially designed loss is used to deal with data sets with unbalanced categories
Report on investment development and strategic recommendations of China's vibration isolator market, 2022-2027
[shutter] shutter page Jump (route | navigator | page close)
MySQL learning record (1)
pip安装whl文件报错:ERROR: ... is not a supported wheel on this platform
In depth research and investment feasibility report on the global and China active vibration isolation market 2022-2028
Cloud computing technology [2]
kernel_ uaf
GEE:(二)对影像进行重采样
Research Report on market supply and demand and strategy of China's plastic trunking industry
System (hierarchical) clustering method and SPSS implementation
Capacity expansion mechanism of ArrayList
Plastic floating dock Industry Research Report - market status analysis and development prospect forecast
China Indonesia advanced wound care market trend report, technological innovation and market forecast
Structure array, pointer and function and application cases
Construction and maintenance of business websites [7]
Go web programming practice (2) -- process control statement
Accounting regulations and professional ethics [18]
Accounting regulations and professional ethics [17]
[shutter] shutter layout component (wrap component | expanded component)