当前位置:网站首页>记录一下微信、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,
});
边栏推荐
- China's log saw blade market trend report, technological innovation and market forecast
- [C language] [sword finger offer article] - replace spaces
- Import a large amount of data to redis in shell mode
- 读博士吧,研究奶牛的那种!鲁汶大学 Livestock Technology 组博士招生,牛奶质量监测...
- pip安装whl文件报错:ERROR: ... is not a supported wheel on this platform
- Micro SD Card Industry Research Report - market status analysis and development prospect forecast
- Research Report on market supply and demand and strategy of Chinese garden equipment industry
- Find objects you can't see! Nankai & Wuhan University & eth proposed sinet for camouflage target detection, and the code has been open source
- A specially designed loss is used to deal with data sets with unbalanced categories
- MySQL learning record (8)
猜你喜欢

Huawei Hongmeng watch achieves fireworks display effect on New Year's Eve

Basic knowledge of tree and binary tree (detailed illustration)

PIP audit: a powerful security vulnerability scanning tool

MySQL learning record (5)
![[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)

Check the confession items of 6 yyds

Browser - clean up the cache of JS in the page

How does esrally perform simple custom performance tests?

Investment strategy analysis of China's electronic information manufacturing industry and forecast report on the demand outlook of the 14th five year plan 2022-2028 Edition
![[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
随机推荐
The web version of xshell supports FTP connection and SFTP connection
China's log saw blade market trend report, technological innovation and market forecast
How does esrally perform simple custom performance tests?
China plastic bottle and container market trend report, technological innovation and market forecast
[shutter] shutter gesture interaction (click event handling | click OnTap | double click | long press | click Cancel | press ontapdown | lift ontapup)
pyqt图片解码 编码后加载图片
Go web programming practice (2) -- process control statement
treevalue——Master Nested Data Like Tensor
~91 rotation
Construction and maintenance of business websites [7]
qwb2018_ core kernel_ rop
Cloud computing technology [1]
Internet Explorer ignores cookies on some domains (cannot read or set cookies)
B.Odd Swap Sort(Codeforces Round #771 (Div. 2))
System (hierarchical) clustering method and SPSS implementation
关于测试用例
如何访问kubernetes API?
CVPR论文解读 | 弱监督的高保真服饰模特生成
Browser - clean up the cache of JS in the page
In depth research and investment feasibility report on the global and China active vibration isolation market 2022-2028