随笔分类 -  Node

摘要:1.this.$router.push() 描述:跳转到不同的url,但这个方法会向history栈添加一个记录,点击后退会返回到上一个页面。 用法: this.$router.push('/index') this.$router.push({path:'/index'}) this.$route 阅读全文
posted @ 2020-11-30 19:55 骇客黑界 阅读(329) 评论(0) 推荐(0)
摘要:node有一个模块叫n(这名字可够短的。。。),是专门用来管理node.js的版本的。 首先安装n模块: npm install -g n 第二步: 升级node.js到最新稳定版 n stable n后面也可以跟随版本号比如: n v0.10.26 另外分享几个npm的常用命令 npm -v #显 阅读全文
posted @ 2020-11-20 15:53 骇客黑界 阅读(6150) 评论(0) 推荐(1)