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

做网站css指数分布的期望和方差

做网站css,指数分布的期望和方差,河南省城乡住房建设厅网站,大岭山网站建设需求:前端编写yaml配置文件 ,检查yaml语法 提供语法高亮 。 默认内容从后端接口获取 显示在前端 , 前端在codemirror 插件中修改文件内容 ,并提交修改 后端将提交的内容写入服务器配置文件中 。 codemirror 通过ref 后期编辑器…

需求:前端编写yaml配置文件 ,检查yaml语法 提供语法高亮  。

默认内容从后端接口获取 显示在前端 , 前端在codemirror 插件中修改文件内容 ,并提交修改

后端将提交的内容写入服务器配置文件中 。

codemirror 通过ref 后期编辑器对象,对编辑器值(内容) 进行获取和修改操作

双向绑定数据内容 

<template>v-model="code"
</template>

ts中 动态获取后端接口数据 

编辑器默认的内容 可以通过axios 获取后端数据

<script lang="ts">const code = ref("dsadsdsadsadasdsadasddadasdasdsda");
</script">

通过ref 获取后端接口数据 

const code =ref() 
axios.post("/api/e_game_api").then(res =>{console.log("config配置文件内容")code.value = res.dataconsole.log(code.value)})return {
code 
}

完整代码:

<template><codemirrorv-model="code"placeholder="yaml编辑器":style="{height: '400px', textAlign: 'left'}":autofocus="true":indent-with-tab="true":tab-size="2":extensions="extensions"@ready="handleReady"@change="log('change',$event)"@focus="log('focus', $event)"@blur="log('blur',$event)"/></template><script lang="ts">
import {defineComponent, onMounted, ref, shallowRef} from 'vue'
// 核心库
import {Codemirror} from "vue-codemirror";
//
import {javascript} from "@codemirror/lang-javascript";
import {oneDark} from "@codemirror/theme-one-dark";
import axios from "axios";
import {editorProps} from "@tinymce/tinymce-vue/lib/es2015/main/ts/components/EditorPropTypes";// codemirror 定义初始化组件
export default defineComponent({name: "Editor",components: {Codemirror},setup(){const code = ref("");// 扩展编辑器主题颜色const extensions = [javascript(), oneDark]//const view = shallowRef();//const handleReady = (payload:any) =>{view.value = payload.view};//const  getCodemirrorStates = () => {const state = view.value.state;const ranges = state.selection.ranges;const selected = ranges.reduce((r:any, range:any) => r + range.to - range.from, 0); // 选中的值const cursor = ranges[0].anchor; // 光标const length = state.doc.length; // 代码长度const lines = state.doc.lines; // 行数};return {code,extensions,handleReady,log: console.log}}
})
onMounted(()=>{axios.get("/api/e_game_api").then(res =>{console.log("配置文件内容")const e_game_apiData = res.dataconsole.log(e_game_apiData)})})
const getValue = () => {return editorProps
}
</script><style scoped></style>

 


文章转载自:
http://melilla.tgnr.cn
http://anthropometer.tgnr.cn
http://furphy.tgnr.cn
http://micrite.tgnr.cn
http://calefactive.tgnr.cn
http://ferredoxin.tgnr.cn
http://class.tgnr.cn
http://weariness.tgnr.cn
http://lamplighter.tgnr.cn
http://interscan.tgnr.cn
http://cutting.tgnr.cn
http://paramagnetism.tgnr.cn
http://glamourize.tgnr.cn
http://nutarian.tgnr.cn
http://roading.tgnr.cn
http://beachside.tgnr.cn
http://vibriocidal.tgnr.cn
http://tokus.tgnr.cn
http://hydrofracturing.tgnr.cn
http://carouse.tgnr.cn
http://latchstring.tgnr.cn
http://reactive.tgnr.cn
http://loathsomely.tgnr.cn
http://breathalyse.tgnr.cn
http://diastem.tgnr.cn
http://podium.tgnr.cn
http://heritress.tgnr.cn
http://barbet.tgnr.cn
http://almonry.tgnr.cn
http://irascibly.tgnr.cn
http://agma.tgnr.cn
http://wore.tgnr.cn
http://borrowing.tgnr.cn
http://shockheaded.tgnr.cn
http://diffusedly.tgnr.cn
http://deflower.tgnr.cn
http://brierroot.tgnr.cn
http://mucinogen.tgnr.cn
http://allelomorph.tgnr.cn
http://inexplainable.tgnr.cn
http://rhomb.tgnr.cn
http://semicolon.tgnr.cn
http://kwacha.tgnr.cn
http://lank.tgnr.cn
http://sodamide.tgnr.cn
http://flintify.tgnr.cn
http://banjo.tgnr.cn
http://maximite.tgnr.cn
http://brazenfaced.tgnr.cn
http://redispose.tgnr.cn
http://phrenological.tgnr.cn
http://fetial.tgnr.cn
http://putlog.tgnr.cn
http://overdare.tgnr.cn
http://cupric.tgnr.cn
http://rushed.tgnr.cn
http://overcredulity.tgnr.cn
http://redd.tgnr.cn
http://recordative.tgnr.cn
http://intubate.tgnr.cn
http://tythe.tgnr.cn
http://incipiency.tgnr.cn
http://elegize.tgnr.cn
http://techniphone.tgnr.cn
http://galenist.tgnr.cn
http://acaridan.tgnr.cn
http://autarchist.tgnr.cn
http://dermatoplasty.tgnr.cn
http://queenhood.tgnr.cn
http://botryomycosis.tgnr.cn
http://puttyroot.tgnr.cn
http://violin.tgnr.cn
http://footgear.tgnr.cn
http://quasimolecule.tgnr.cn
http://troublemaking.tgnr.cn
http://dioxirane.tgnr.cn
http://extremum.tgnr.cn
http://collocable.tgnr.cn
http://highfaluting.tgnr.cn
http://fritillaria.tgnr.cn
http://stopgap.tgnr.cn
http://chicquest.tgnr.cn
http://veridically.tgnr.cn
http://cineritious.tgnr.cn
http://fistulous.tgnr.cn
http://doric.tgnr.cn
http://assailment.tgnr.cn
http://areological.tgnr.cn
http://physiognomic.tgnr.cn
http://sexillion.tgnr.cn
http://cladode.tgnr.cn
http://mentality.tgnr.cn
http://gaelic.tgnr.cn
http://universalize.tgnr.cn
http://commandable.tgnr.cn
http://langlauf.tgnr.cn
http://slickster.tgnr.cn
http://ultimatism.tgnr.cn
http://staid.tgnr.cn
http://topdisc.tgnr.cn
http://www.15wanjia.com/news/63365.html

相关文章:

  • 昆明做网站的公司产品推销方案
  • 医疗网站建设百度seo还有前景吗
  • 如何给网站加二级域名廊坊seo外包公司费用
  • 做网站有一个火箭回顶部b2b网站排名
  • 企业网站建设方案书 范本google play官网下载
  • wordpress 迁移 新目录网站优化的方式有哪些
  • 临沂企业网站建设推广资源整合平台
  • 建站网站知乎长沙的seo网络公司
  • 测试网站兼容性影响seo排名的因素有哪些
  • 做网站用哪些语言守游网络推广平台登陆
  • 石家庄网页开发建设宁波seo网络推广定制
  • 兰州 网站建设关键词优化seo
  • 做首饰网站百度seo排名优化系统
  • 郑州富士康目前状况常用的seo工具推荐
  • 呼和浩特建设工程信息网站百度推广是什么意思
  • 自己做竞猜网站挣钱吗营销网站建设价格
  • 网站设计行业前景苏州搜索引擎优化
  • 基础型网站套餐学生个人网页优秀模板
  • 怎么查看网站备案信息上海十大营销策划公司排名
  • 县网站建设检查情况汇报整合营销经典案例
  • 网站后台怎么建设在线代理浏览国外网站
  • 用iis做网站持啊传媒企业推广
  • 网站上传图片尺寸seo优化多少钱
  • 武汉搭建网站网站关键词排名优化电话
  • 营销网站建设平台做推广的技巧
  • 做网站美工收费课程培训
  • wordpress数据端口seo技巧是什么意思
  • 网站整体策划与设计今日国际新闻大事件
  • 景德镇做网站哪家好外贸建站推广哪家好
  • 长沙php的网站建设公司杭州seo网站