当前位置: 首页 > news >正文

dede做的网站打不开wordpress淘宝采集

dede做的网站打不开,wordpress淘宝采集,郑州最新发布信息,国内最新重大新闻1、效果图 输入代码#xff0c;点击格式化就出现以上效果#xff0c;再点击压缩#xff0c;是以下效果2、安装 npm i vue3-ace-editor 3、使用 新建aceConfig.js文件 // ace配置#xff0c;使用动态加载来避免第一次加载开销 import ace from ace-builds// 导入不同的主…1、效果图 输入代码点击格式化就出现以上效果再点击压缩是以下效果2、安装 npm i vue3-ace-editor 3、使用 新建aceConfig.js文件 // ace配置使用动态加载来避免第一次加载开销 import ace from ace-builds// 导入不同的主题模块并设置对应 URL import themeGithubUrl from ace-builds/src-noconflict/theme-github?url ace.config.setModuleUrl(ace/theme/github, themeGithubUrl)import themeChromeUrl from ace-builds/src-noconflict/theme-chrome?url ace.config.setModuleUrl(ace/theme/chrome, themeChromeUrl)import themeMonokaiUrl from ace-builds/src-noconflict/theme-monokai?url ace.config.setModuleUrl(ace/theme/monokai, themeMonokaiUrl)// 导入不同语言的语法模式模块并设置对应 URL (所有支持的主题和模式node_modules/ace-builds/src-noconflict) import modeJsonUrl from ace-builds/src-noconflict/mode-json?url ace.config.setModuleUrl(ace/mode/json, modeJsonUrl)import modeJavascriptUrl from ace-builds/src-noconflict/mode-javascript?url ace.config.setModuleUrl(ace/mode/javascript, modeJavascriptUrl)import modeHtmlUrl from ace-builds/src-noconflict/mode-html?url ace.config.setModuleUrl(ace/mode/html, modeHtmlUrl)import modePythonUrl from ace-builds/src-noconflict/mode-python?url ace.config.setModuleUrl(ace/mode/yaml, modePythonUrl)// 用于完成语法检查、代码提示、自动补全等代码编辑功能必须注册模块 ace/mode/lang _ worker并设置选项 useWorker: true import workerBaseUrl from ace-builds/src-noconflict/worker-base?url ace.config.setModuleUrl(ace/mode/base, workerBaseUrl)import workerJsonUrl from ace-builds/src-noconflict/worker-json?url // for vite ace.config.setModuleUrl(ace/mode/json_worker, workerJsonUrl)import workerJavascriptUrl from ace-builds/src-noconflict/worker-javascript?url ace.config.setModuleUrl(ace/mode/javascript_worker, workerJavascriptUrl)import workerHtmlUrl from ace-builds/src-noconflict/worker-html?url ace.config.setModuleUrl(ace/mode/html_worker, workerHtmlUrl)// 导入不同语言的代码片段提供代码自动补全和代码块功能 import snippetsJsonUrl from ace-builds/src-noconflict/snippets/json?url ace.config.setModuleUrl(ace/snippets/json, snippetsJsonUrl)import snippetsJsUrl from ace-builds/src-noconflict/snippets/javascript?url ace.config.setModuleUrl(ace/snippets/javascript, snippetsJsUrl)import snippetsHtmlUrl from ace-builds/src-noconflict/snippets/html?url ace.config.setModuleUrl(ace/snippets/html, snippetsHtmlUrl)import snippetsPyhontUrl from ace-builds/src-noconflict/snippets/python?url ace.config.setModuleUrl(ace/snippets/javascript, snippetsPyhontUrl)// 启用自动补全等高级编辑支持 import extSearchboxUrl from ace-builds/src-noconflict/ext-searchbox?url ace.config.setModuleUrl(ace/ext/searchbox, extSearchboxUrl)// 启用自动补全等高级编辑支持 import ace-builds/src-noconflict/ext-language_tools ace.require(ace/ext/language_tools)4、在页面使用 templatedivdiv classflex justify-between mb-2el-tag color#eff0ff effectlightjson/el-tagdivel-button color#8769db sizesmall clickjsonFormat{{ $t(format) }}/el-buttonel-button sizesmall clickjsonNoFormat{{ $t(zip) }}/el-button/div/divv-ace-editorv-model:valuecontentlangjsonthemechrome:optionsoptionsclassw-full text-base pt-5:readonlyoptions.readOnly//div /templatescript langts setup import { ref, reactive, watch } from vue import emitter from /utils/emitter import { VAceEditor } from vue3-ace-editor import ./aceConfig.jsconst content ref() // 显示的内容const options reactive({useWorker: true, // 启用语法检查,必须为trueenableBasicAutocompletion: true, // 自动补全enableLiveAutocompletion: true, // 智能补全enableSnippets: true, // 启用代码段showPrintMargin: false, // 去掉灰色的线printMarginColumnhighlightActiveLine: false, // 高亮行highlightSelectedWord: true, // 高亮选中的字符tabSize: 4, // tab锁进字符fontSize: 14, // 设置字号wrap: false, // 是否换行readOnly: false, // 是否可编辑minLines: 1, // 最小行数minLines和maxLines同时设置之后可以不用给editor再设置高度maxLines: 50, // 最大行数 })// JSON格式化 const jsonFormat () {try {content.value JSON.stringify(JSON.parse(content.value), null, 2)} catch (e) {jsonError(e)} }// JSON压缩 const jsonNoFormat () {try {content.value JSON.stringify(JSON.parse(content.value))} catch (e) {jsonError(e)} }watch(() content.value,(newContent) {emitter.emit(handleCondition, newContent)},{ deep: true, immediate: true }, )const jsonError (e: any) {console.log(JSON字符串错误${e.message}) } /scriptstyle .ace_gutter {background-color: transparent !important; } .ace-chrome .ace_gutter-active-line {background-color: transparent !important; } /style参考vue3-ace-editor使用记录-CSDN博客
http://www.hkea.cn/news/14394265/

相关文章:

  • 网站建设需要什么软件有哪些东宁做木耳招工人网站
  • 网站修改dns线上免费编程课
  • 承装承修承试材料在哪个网站做制作一个网站费用
  • 网站百度收录是什么意思wordpress远程插件
  • 新建的网站可以百度推广seo是指什么岗位
  • 青岛做门户网站的建设网站需要几个文件夹
  • 深圳公明网站建设本周新闻热点10条2021
  • 海外仓网站建设大良手机网站建设
  • 备案 网站名称涉及到行业网站页面大小优化怎么做
  • 艺术设计专业灵感推荐网站品牌网站建设4a小蝌蚪
  • 郑州网站建设up188视频网站后台设计
  • 水果网站设计论文网站中的人力资源建设
  • 网站建设的报价制作网址怎么收费
  • 太原中企动力网站建设wordpress收起边栏
  • 柳市网站设计推广互联网巨头是哪几家
  • 做商城网站需要多大的服务器厦门网站建设哪家不错推荐
  • html5网站开发设计目前比较火的电商平台有哪些
  • 辽宁平台网站建设公司夜月直播下载直播
  • 信誉比较好的网上做任务的网站网页编程软件叫什么
  • zhi做网站家具设计公司
  • 永清县建设局 网站智慧软文网站
  • 教务在线网站开发报告书网上买保险网站
  • 做网站的的人收入多少钱电商运营培训视频课程
  • 东盟经济技术开发区建设网站部队网站设计
  • wordpress中文修改眼科医院网站优化服务商
  • 织梦本地做网站盐城市网站建设公司
  • 网站内页seo免费建站哪家有
  • 小说网站做兼职网络规划设计师多少分通过
  • 网站开发 群前端开发线下培训班
  • 成都海鸥手表网站seo外包优化公司