会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
rooloo
博客园
首页
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
下一页
2019年11月3日
input标签不支持伪元素!
摘要: 规范里说: Authors specify the style and location of generated content with the :before and :after pseudo-elements. As their names indicate, the :before an
阅读全文
posted @ 2019-11-03 00:32 zoo-x
阅读(2047)
评论(0)
推荐(0)
2019年11月1日
vue项目使用阿里云oss上传图片或下载图片
摘要: 1.封装上传和下载的方法 安装 ali-oss包 npm install ali-oss 新建 utils/oss.js: 然后在utils/oss.js写入代码: 1.导入ali-oss import OSS from 'ali-oss' 2.配置信息 const region = "oss-cn
阅读全文
posted @ 2019-11-01 16:51 zoo-x
阅读(3834)
评论(2)
推荐(1)
vue混入mixin的使用
摘要: 混入其实和一个vue的页面一样,有声明周期,函数,过滤器等等,页面有的混入里也都有 下面是一个全局混入的实例: 1.创建mixin/index.js mixin/index.js: export default { install: (Vue) => { Vue.mixin({ methods: {
阅读全文
posted @ 2019-11-01 15:39 zoo-x
阅读(226)
评论(0)
推荐(0)
2019年10月31日
vue-cli3项目搭建时选择了eslint,在项目中怎么关闭
摘要: 有时候在搭建项目的时候,选择了安装eslint,但是写代码的时候控制台报如下图的警告,可以在项目中关闭eslint校验 1.在项目的根目录下创建 vue.config.js 文件 2.vue.config.js中添加 module.exports = { lintOnSave: false } 3.
阅读全文
posted @ 2019-10-31 16:20 zoo-x
阅读(2540)
评论(0)
推荐(1)
vue富文本编辑器vue-quill-editor使用
摘要: 1.安装包 yarn add vue-quill-editor 安装依赖项 yarn add quill 2.引入 在 main.js里加上代码: import Vue from 'vue' import VueQuillEditor from 'vue-quill-editor' import '
阅读全文
posted @ 2019-10-31 11:58 zoo-x
阅读(758)
评论(0)
推荐(0)
2019年10月30日
安装yarn后,cmd可以运行,但在vscode中无法运行
摘要: 在vscode中安装yarn npm i -g yarn
阅读全文
posted @ 2019-10-30 09:59 zoo-x
阅读(676)
评论(0)
推荐(0)
ts在vue项目中的使用(2)-通讯
摘要: 父传子 原写法 ts写法 ts还可设置默认值 子传父 ts写法 1.子组件 2.父组件 兄弟组件传值 待续
阅读全文
posted @ 2019-10-30 09:51 zoo-x
阅读(395)
评论(0)
推荐(0)
2019年10月29日
ts在vue项目中的使用(1)-引入组件
摘要: 不用ts 使用ts 使用vue-property-decorator,用装饰器的方式简写ts代码, 附vue-property-decorator使用指南(https://juejin.im/post/5c173a84f265da610e7ffe44) npm install --save vue-
阅读全文
posted @ 2019-10-29 11:01 zoo-x
阅读(4311)
评论(0)
推荐(0)
2019年10月28日
搭建基于ts的vue项目
摘要: 环境 需要全局安装typescript和vue-cli 我们使用的是vue-cli3.0的版本 npm install -g typescript npm install -g @vue/cli 搭建 vue create vue-ts 如图,勾选TypeScript,选择需要的配置 vue+ts环
阅读全文
posted @ 2019-10-28 15:01 zoo-x
阅读(756)
评论(0)
推荐(0)
npm配置淘宝镜像
摘要: 设置淘宝源 npm config set registry https://registry.npm.taobao.org 查看是否成功 npm config get registry 恢复源 npm config set registry https://registry.npmjs.org
阅读全文
posted @ 2019-10-28 11:59 zoo-x
阅读(179)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
下一页
公告