摘要: 处理html显示,主要是编辑器保存后展示的处理 编码处理-基础 export function decodeHTMLEntities(text) { if (!text) return '' const entities = { ' ': ' ', '&': '&', '<' 阅读全文
posted @ 2025-08-28 10:50 流云君 阅读(11) 评论(0) 推荐(0)
摘要: 1.导出图片 基础导出 const dpr = Math.max(window.devicePixelRatio || 1, 3) // 建议2~3 const captureElement = () => { html2canvas(element, { scale: dpr, useCORS: 阅读全文
posted @ 2025-08-28 10:44 流云君 阅读(11) 评论(0) 推荐(0)