/* QRCode.js - Local Fallback */ (function() { 'use strict'; // 简化的 QRCode 备用实现 window.QRCode = function(element, options) { this.element = typeof element === 'string' ? document.getElementById(element) : element; this.options = options || {}; if (this.element) { this.element.innerHTML = '
' + '二维码生成器
暂时不可用
'; } return this; }; // 添加基本方法 window.QRCode.prototype = { makeCode: function(text) { console.warn('QRCode 本地备用版本 - 功能受限'); if (this.element) { this.element.innerHTML = '
' + text + '
'; } }, clear: function() { if (this.element) { this.element.innerHTML = ''; } } }; })();