Ctrl+Shift+P,F1:显示命令面板Ctrl+P:快速打开Ctrl+Shift+N:新窗口/实例Ctrl+Shift+W:关闭窗口/实例Ctrl+X:剪切行Ctrl+C:复制行ALT+↑/↓:上下移动Shift+Alt+↓/↑:向上/向下复制行Ctrl+Shift+K:删除行Ctrl+Enter:在下面插入行Ctrl+Shift+Enter:在上面插入行…
2023-02-24 200
方法一:文件---首选项---设置---在设置页面上方搜索栏中输入:"Editor: Word Wrap"---将设置修改为 on 状态即可开启自动换行方法二:在编辑窗口左侧下面找到设置按钮---进入设置页---在设置页面上方搜索栏中输入:"Editor: Word Wrap"---将设置修改…
2023-02-24 279
安装 cnpm install axios三种get请求// 第一种写法axios.get(/query?name=tom).then(function (response) { console.log(response);}).catch(function (error) { console.log(error);});// 第二种写法axios.get(/query, { params: { name: tom }})…
2023-02-22 187
axios({ // 请求的服务器 URL url: /user, // 创建请求时使用的方法 method: get, // 默认是 get // 将自动加在 url 前 baseURL: https://some-domain.com/api/, // 在向服务器发送前,修改请求数据 // 只能用在 PUT, POST 和 PATCH 这几个请求方法 // 后面数组…
2023-02-22 212
vue-cli 3.x 的 views 和 components有什么区别?components是小组件containers是容器级组件views是页面级组件也就是说,views是页面级组件,components是小组件,小组件可被引用在views中,一般views组件不被复用【containers是容器级组件(根据项目大小决定是否使用)】…
2023-02-22 207