06 2024 档案
vue-router不跳转
摘要:设置好路由以后组件就是不跳转而且不报错原因竟是VueRouter的routes属性被我敲成了 routers // 错误代码 const router = new VueRouter({ mode: 'history', routers })// 改正后 const router = new Vue
阅读全文
c语言目录操作
摘要:在shell中我们可以直接输入命令pwd 来显示当前的工作目录,在C程序中调用getcwd函数可以获取当前的工作目录。函数声明: char *getcwd(char * buf,size_t size); 需要头文件: #include getcwd函数把当前工作目录存入buf中,如果目录名超出了参
阅读全文