插件调用方法: $("#qrcode").qrcode({ width: 200, height: 200, text: "支持汉字展示", //内容 typeNumber: 1, //计算模式 correctLevel: 2, //二维码纠错级别 background: "#ffffff", //背景颜色 foreground: "#000000", //二维码颜色 src: 'img/dantyli.png', //logo图片 toImg: false //是否转化为图片,默认为false }); 基于此插件的二维码生成器