Skip to content

Qrcode

generateQRCode

生成二维码 EN: Generate a QR code for content. If content is a canvas element it renders to it; if base64 is true, returns a data URL; otherwise returns a string/terminal/svg depending on options.

/**
* 生成二维码
* @param { string | HTMLCanvasElement } content 元素
* @param { boolean } base64 生成base64格式
* @param options
* @returns
* @description EN: Generate a QR code for content. If `content` is a canvas element it renders to it; if `base64` is true, returns a data URL; otherwise returns a string/terminal/svg depending on options.
*/