当前位置:网站首页>QRCode自定义二维码中间图片
QRCode自定义二维码中间图片
2022-06-29 14:03:00 【Chon.Wang】
本文转载自: 点击查看转载出处
第一步: 下载所需文件
需要下载的文件, 点我下载
第二步: HTML 代码
<div id="qr-code" class="qr-code">
<img id="qrCodeIco" style="display: none;" src="你的图片路径" alt="">
</div>
第三步: JavaScript 代码
// 二维码链接
$('#qr-code').qrcode("http://www.baidu.com");
// 生成二维码
$("#qr-code canvas")[0].getContext('2d').drawImage($("#qrCodeIco")[0], 100, 100, 65, 65);
边栏推荐
猜你喜欢

微信小程序:修复采集接口版云开发表情包

By proxy, by buyout, the wild era of domestic end-to-end travel is waiting for the next "eternal robbery"

投资人跌下神坛:半年0出手,转行送外卖

Wechat applet: Halloween avatar box generation tool

Are you still reading the log by command? Use kibana, one picture is better than ten thousand lines of log

留给比亚迪的时间还有三年

台式机主板上保护cpu的盖子安装和拆卸

How goby exports scan results

"Dead" Nokia makes 150billion a year
![[Jenkins] pipeline controls the sequential execution of multiple jobs for timed continuous integration](/img/04/a650ab76397388bfb62d0dd190dbd0.png)
[Jenkins] pipeline controls the sequential execution of multiple jobs for timed continuous integration
随机推荐
HTAP X 云原生: TiDB 加速释放数据价值,实现数据敏捷
Characteristics of human immaturity
Interview high concurrent, cool!! (high energy in the whole process, collection recommended)
mysql多表查询
Recruiting talents and seeking development | Jincang of the National People's Congress won the "best employer school recruitment case Award"
国内十大券商,有哪些安全吗?
vmware虚拟机的作用
用手机在指南针上开户靠谱吗?这样炒股有没有什么安全隐患
电脑时间校对后不自动更新要如何解决
28000 word summary of callable and future interview knowledge points. After reading it, I went directly to ByteDance. Forgive me for being a little floating (Part 2)
Analysis of istio -- observability
【blackduck】jenkins下配置指定的synopsys-detect扫描版本
numpy数组创建
微信小程序:万圣节头像框生成工具
Summary of binary tree exercises
golang7_TCP编程
Unity 关于Destroy 和 OnDestroy失效(延迟)的问题
VeeamBackup&Replication简介
Unity SplashImage 缩放问题
Hardware development notes (VIII): basic process of hardware development, making a USB to RS232 module (VII): creating a basic dip component (crystal oscillator) package and associating the principle