zoukankan      html  css  js  c++  java
  • js生成二维码参数设置

    jquery qrcode使用方法

    $(selector).qrcode({
         100,
        height: 100,
        color: '#3a3',
        text: 'http://larsjung.de/qrcode'
    });

     jquery qrcode参数设置

    {
     
        // render method: `'canvas'`, `'image'` or `'div'`
        render: 'canvas',
     
        // version range somewhere in 1 .. 40
        minVersion: 1,
        maxVersion: 40,
     
        // error correction level: `'L'`, `'M'`, `'Q'` or `'H'`
        ecLevel: 'L',
     
        // offset in pixel if drawn onto existing canvas
        left: 0,
        top: 0,
     
        // size in pixel
        size: 200,
     
        // code color or image element
        fill: '#000',
     
        // background color or image element, `null` for transparent background
        background: null,
     
        // content
        text: 'no text',
     
        // corner radius relative to module  0.0 .. 0.5
        radius: 0,
     
        // quiet zone in modules
        quiet: 0,
     
        // modes
        // 0: normal
        // 1: label strip
        // 2: label box
        // 3: image strip
        // 4: image box
        mode: 0,
     
        mSize: 0.1,
        mPosX: 0.5,
        mPosY: 0.5,
     
        label: 'no label',
        fontname: 'sans',
        fontcolor: '#000',
     
        image: null
    }
  • 相关阅读:
    4.单例模式
    3.适配器模式
    2.策略模式
    1.工厂模式
    机器学习
    何为技术领导力
    图像像素的算术操作
    图像对象创建和赋值的区别
    图像色彩空间转换
    notepad更改文档编码格式
  • 原文地址:https://www.cnblogs.com/ayseeing/p/3746258.html
Copyright © 2011-2022 走看看