Aciuz

分类 设计开发 下的文章

本站共有98篇文章,52条评论,62个标签

Chinese (Simplified) Language Pack for Visual Studio Code 新版Vscode已经不再包含中文字体,必须安装中文字体支持 主题 Atom One Dark Theme Atom...

在项目中使用PDF.js展示PDF报错 pdf.js:8715 Uncaught (in promise) Error: No "GlobalWorkerOptions.workerSrc" specified. at getWor...

在 Web 开发中,经常要对表单元素的输入进行限制,比如说不允许输入特殊字符,标点。通常我们会监听 input 事件: inputElement.addEventListener('input', function(event) { let regex = /[^1-9a-zA-Z]/g; event.target.value = event.target.value.replace(regex, ''); event.ret...

公司中台使用UEditor替换了年久失修的eWebEditor,虽然UEditor也早已停止维护,但现在可选择的富文本编辑并不多,实际使用对代码还是有很多调整,记录备忘。 1、屏蔽编辑器自动将div标签替换为p标签 ueditor.config.js ,allowDivTransToP:false //允许进入编辑器的div标签自动变成p标签 2、白名单增加视频设置 ueditor.config.js source: ['src', 'type'], em...
随机文章
最新评论