React
文章平均质量分 61
码路CodeWay
这个作者很懒,什么都没留下…
展开
-
CKEditor5 富文本编辑器安装以及使用
CKEditor 5是一个超现代的JavaScript富文本编辑器,具有MVC架构、自定义数据模型和虚拟DOM。它是在ES6中从头编写的,并且有出色的webpack支持。包含经典编辑器、内联编辑器、气球块编辑器、气球编辑器、文档编辑器。转载 2022-04-27 13:08:48 · 7511 阅读 · 0 评论 -
SyntaxError:JSON.parse:unexpected character at line 1 column 1 of the JSON data
访问页面的时候出现空白,查看控制台出现SyntaxError:JSON.parse:unexpected character at line 1 column 1 of the JSON data,这应该是JSON.parse导致的。修复前的代码 static getItem(key: string): any { const item = localStorage.getItem(key); if (item) { return JSON.parse(item);转载 2022-04-27 10:34:47 · 4641 阅读 · 1 评论 -
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of me
build react项目提示错误信息<--- Last few GCs --->[1118:0x104c00000] 210060 ms: Scavenge (reduce) 2020.9 (2049.8) -> 2020.1 (2051.3) MB, 3.4 / 0.0 ms (average mu = 0.148, current mu = 0.006) allocation failure [1118:0x104c00000] 213180 ms: Mark转载 2022-03-30 15:24:54 · 1957 阅读 · 0 评论