页面添加二维码的实现方法

通过jQuery的qrcode插件来实现二维码的展示

首先加载jq,然后加载qrcode

git地址:https://github.com/jeromeetienne/jquery-qrcode

代码如下:

$("#id").qrcode({
  width: 200, //宽度
  height:200, //高度
  text: "http://v.cnhzh.com/products/product-12990.html" //页面链接
});

posted @ 2017-07-28 17:13  野望之风  阅读(361)  评论(0编辑  收藏  举报