当前位置:网站首页>记录一下微信、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,
});
边栏推荐
- Construction and maintenance of business website [2]
- MySQL learning record (1)
- 【剑指 Offer】57. 和为s的两个数字
- Research Report on market supply and demand and strategy of China's Plastic Geogrid industry
- Five message formats of OSPF
- Unexpectedly, there are such sand sculpture code comments! I laughed
- [shutter] shutter layout component (Introduction to layout component | row component | column component | sizedbox component | clipoval component)
- PIP audit: a powerful security vulnerability scanning tool
- *C language final course design * -- address book management system (complete project + source code + detailed notes)
- GEE:(二)对影像进行重采样
猜你喜欢
GEE:(二)对影像进行重采样
Huawei Hongmeng watch achieves fireworks display effect on New Year's Eve
Research Report on ranking analysis and investment strategic planning of RFID market competitiveness of China's industrial manufacturing 2022-2028 Edition
MySQL learning record (7)
PIP version update timeout - download using domestic image
Off chip ADC commissioning record
Today, I met a Alipay and took out 35K. It's really sandpaper to wipe my ass. it's a show for me
读博士吧,研究奶牛的那种!鲁汶大学 Livestock Technology 组博士招生,牛奶质量监测...
*C language final course design * -- address book management system (complete project + source code + detailed notes)
[shutter] statefulwidget component (pageview component)
随机推荐
[use of pointer and pointer and array]
MySQL inserts Chinese data and reports an error. Set the default collation
How to prevent your jar from being decompiled?
Cardinality sorting (detailed illustration)
【剑指 Offer】56 - I. 数组中数字出现的次数
GEE:(二)对影像进行重采样
One week dynamics of dragon lizard community | 2.07-2.13
Basic IO interface technology - microcomputer Chapter 7 Notes
Baidu sued a company called "Ciba screen"
Research Report on micro gripper industry - market status analysis and development prospect prediction
26 FPS video super-resolution model DAP! Output 720p Video Online
Three chess games
Browser - clean up the cache of JS in the page
Get weekday / day of week for datetime column of dataframe - get weekday / day of week for datetime column of dataframe
Construction and maintenance of business website [5]
MySQL learning record (4)
In depth research and investment feasibility report on the global and China active vibration isolation market 2022-2028
Accounting regulations and professional ethics [16]
Adding data to the head or tail of the rar file can still decompress normally
Plastic granule Industry Research Report - market status analysis and development prospect forecast