上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页
摘要: 前言目前看到该文章已经被[脚本之家](https://www.jb51.net/article/160146.htm)[码农教程](http://www.manongjc.com/article/109553.html)[bbsmax](https://www.bbsmax.com/A/VGzlp7 阅读全文
posted @ 2018-11-20 16:24 ฅ˙-˙ฅ 阅读(6301) 评论(0) 推荐(1) 编辑
摘要: mixins.ts 1 import { Vue, Component, Watch } from "vue-property-decorator" 2 Component.registerHooks([ 3 'beforeRouteLeave' 4 ]) 5 @Component 6 /* 此mi 阅读全文
posted @ 2018-11-09 15:43 ฅ˙-˙ฅ 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 1. index.html头部引用 2. 修改webpack.base.cong.js 3. 在相关组件的ts中 container: document.getElementById('cy'); // 组件中要有id="cy"的dom元素 4. 注意,我这里使用的是ts,所以需要cytoscape 阅读全文
posted @ 2018-11-06 15:08 ฅ˙-˙ฅ 阅读(1791) 评论(0) 推荐(0) 编辑
摘要: 之前讲述了怎么在vue项目中使用monaco-editor (https://www.cnblogs.com/XHappyness/p/9414177.html),使用是正常的,虽然 npm run build 打包后文件能够正常使用,但是文件结构很乱,而且很大。 1. 初步解决,使用monaco- 阅读全文
posted @ 2018-09-26 17:07 ฅ˙-˙ฅ 阅读(2650) 评论(0) 推荐(0) 编辑
摘要: 1. 本地创建项目文件夹 2. 将本地的项目添加到source中(我使用的source版本为2.4.7.0) 3. github创建远程库 4. 关联本地项目文件和github库 确定添加就可以了。 一个新的项目以及远程库创建及关联完毕。 写完代码就可以在sourcetree中进行提交等操作了 阅读全文
posted @ 2018-09-20 13:54 ฅ˙-˙ฅ 阅读(480) 评论(0) 推荐(0) 编辑
摘要: chrome扩展程序中内容脚本有两种插入方式:(https://crxdoc-zh.appspot.com/extensions/content_scripts) 1. 清单文件: 这种方式会在打开每个tab页面时自动运行 2. 代码方式插入: 这种方式会在触发插入脚本代码时,内容脚本才运行 但是, 阅读全文
posted @ 2018-09-20 11:07 ฅ˙-˙ฅ 阅读(502) 评论(0) 推荐(0) 编辑
摘要: monaco editor :https://www.cnblogs.com/XHappyness/p/9414177.html 这里实现自己定义的提示: .vue .ts 阅读全文
posted @ 2018-08-08 17:38 ฅ˙-˙ฅ 阅读(8416) 评论(15) 推荐(0) 编辑
摘要: monaco-editor: https://github.com/Microsoft/monaco-editor 在ESM中的使用官方也有对应文档:https://github.com/Microsoft/monaco-editor/blob/master/docs/integrate-esm.m 阅读全文
posted @ 2018-08-03 15:00 ฅ˙-˙ฅ 阅读(9424) 评论(4) 推荐(0) 编辑
摘要: 效果: 思路: 让一个div浮动在textarea上,样式和位置保持完全一致,textarea负责输入,div负责高亮显示 代码: .vue <template> <div class="highlight-contain"> <!-- 本组件是带高亮的textarea,需要接受高亮关键词数组来进行 阅读全文
posted @ 2018-07-30 14:30 ฅ˙-˙ฅ 阅读(3944) 评论(0) 推荐(0) 编辑
摘要: 原文出处: http://www.w3cplus.com/css/caret-color.html 阅读全文
posted @ 2018-07-27 13:58 ฅ˙-˙ฅ 阅读(725) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页