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

浙公网安备 33010602011771号