• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 








 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 2 3 4 5 6 7 8 ··· 16 下一页

2021年5月26日

vue-router 参数
摘要: export default new Router({ mode: 'history', //路由模式,取值为history与hash base: '/', //打包路径,默认为/,可以修改 routes: [ { path: string, //路径 component: Component; / 阅读全文
posted @ 2021-05-26 10:54 我是一枚前端小菜鸟 阅读(473) 评论(0) 推荐(0)
 

2021年5月25日

vue插件的安装
摘要: npm install --save nprogress 安装进度条 npm i axios 安装axiosnpm i less-loader less -D 安装lessnpm i vue-router -S 安装 routernpm i element-ui -S 安装elementUInpm 阅读全文
posted @ 2021-05-25 17:18 我是一枚前端小菜鸟 阅读(163) 评论(0) 推荐(0)
 
vue 的props属性
摘要: type: 数据类型 (String,Number,Boolean,Array,Object,Date,Function,Symbol) required: 是否必填 (true, false) default: 默认值 (可以为空) validator: 自定义校验 阅读全文
posted @ 2021-05-25 17:12 我是一枚前端小菜鸟 阅读(184) 评论(0) 推荐(0)
 
在vue项目中使用Nprogress.js进度条
摘要: 在vue中使用进度条 安装 npm install --save nprogress 在项目中引入 在main.js中引入要使用的nprogress import NProgress from 'nprogress' import 'nprogress/nprogress.css' 基本使用 NPr 阅读全文
posted @ 2021-05-25 16:25 我是一枚前端小菜鸟 阅读(200) 评论(0) 推荐(0)
 

2021年5月21日

生成主键id
摘要: // 生成主键id const uuidv1 = require('uuid/v1') let uId = uuidv1() uId = uId.split('-').join('') 阅读全文
posted @ 2021-05-21 16:10 我是一枚前端小菜鸟 阅读(238) 评论(0) 推荐(0)
 

2021年5月17日

VS Code
摘要: - VS Code 安装 `ESLint` / `Vetur` - 提交代码前**务必**执行`npm run lint`进行代码格式检查,若有`warning`/`error`,请及时解决 - 自动修复: `npm run lint -- --fix`。`eslint`会自动修复一些简单的错误。 阅读全文
posted @ 2021-05-17 16:58 我是一枚前端小菜鸟 阅读(196) 评论(0) 推荐(0)
 

2021年2月19日

html启动本地
摘要: ctrl+shift + p 会会弹出一个选择框 选择下边这条 https://www.cnblogs.com/lxn2/p/10006222.html 阅读全文
posted @ 2021-02-19 10:35 我是一枚前端小菜鸟 阅读(168) 评论(0) 推荐(0)
 

2021年2月16日

解决 Avoided redundant navigation to current location: "/"
摘要: 解决方法 打开你router目录下的index.js文件,复制下面代码,添加到最下方就可以了。 const originalPush = VueRouter.prototype.push VueRouter.prototype.push = function push(location) { ret 阅读全文
posted @ 2021-02-16 19:53 我是一枚前端小菜鸟 阅读(2497) 评论(0) 推荐(0)
 

2021年1月15日

导出
摘要: 事件 // 事件 goExcelList() { // 接口 expenseBudgetExportLookOver(this.$route.query.id) .then(res => { const link = document.createElement('a') const blob = 阅读全文
posted @ 2021-01-15 18:50 我是一枚前端小菜鸟 阅读(323) 评论(0) 推荐(0)
 

2021年1月9日

Object.keys()、Object.values()、Object.entries()的用法
摘要: Object 一、Object.keys(obj) 参数:要返回其枚举自身属性的对象 返回值:一个表示给定对象的所有可枚举属性的字符串数组 1、处理对象,返回可枚举的属性数组 let person = {name:"张三",age:25,address:"深圳",getName:function() 阅读全文
posted @ 2021-01-09 21:19 我是一枚前端小菜鸟 阅读(321) 评论(0) 推荐(0)
 
上一页 1 2 3 4 5 6 7 8 ··· 16 下一页