上一页 1 2 3 4 5 6 7 8 ··· 14 下一页
摘要: 安装 npm install vue3-cookies --save main.js import {createApp} from 'vue' import App from './App.vue' import router from './router' import store from ' 阅读全文
posted @ 2022-11-19 09:28 Sherwin_szw 阅读(786) 评论(0) 推荐(0) 编辑
摘要: 基础 安装 vue add router router/index.js import { createRouter, createWebHistory } from 'vue-router' import HomeView from '../views/HomeView.vue' const ro 阅读全文
posted @ 2022-11-16 17:25 Sherwin_szw 阅读(133) 评论(0) 推荐(0) 编辑
摘要: Flex 基本概念: 在 flex 容器中默认存在两条轴,水平主轴(main axis) 和垂直的交叉轴(cross axis),这是默认的设置,当然你可以通过修改使垂直方向变为主轴,水平方向变为交叉轴,这个我们后面再说。 在容器中的每个单元块被称之为 flex item,每个项目占据的主轴空间为 阅读全文
posted @ 2022-11-16 09:47 Sherwin_szw 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 关于node.js 如果想要更新node.js的版本 1.先查看本机node.js版本: node -v 2.清除node.js的cache: sudo npm cache clean -f 3.安装 n 工具 sudo npm install -g n 4.安装最新版本的node.js sudo 阅读全文
posted @ 2022-11-15 14:51 Sherwin_szw 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 注意:发送网络请求时,回调函数必须要使用箭头函数。 <script> function f1(name,age){ console.log(name,age); } f1("失败",99); //箭头函数 let f2 = (name,age) =>{ console.log(name,age); 阅读全文
posted @ 2022-11-15 11:00 Sherwin_szw 阅读(2) 评论(0) 推荐(0) 编辑
摘要: <script> let info = {name:"s z w",email:"xxxxxxx@xxx.com",addr:"北京"}; let {name,addr} = info; console.log(name); console.log(addr); </script> Vue3中需要什 阅读全文
posted @ 2022-11-14 17:06 Sherwin_szw 阅读(20) 评论(0) 推荐(0) 编辑
摘要: <script> function info(v1,...data){ console.log(v1,data); } info(11); info(11,22); info(11,22,333,444,55); </script> <script> function info(v1,v2,v3,v 阅读全文
posted @ 2022-11-14 17:03 Sherwin_szw 阅读(7) 评论(0) 推荐(0) 编辑
摘要: let info = "我是" + "?" + "今年技术"; <script> let name = "张开"; let age = 73; let info = `我叫${name},今年${age}岁`; </script> 阅读全文
posted @ 2022-11-14 17:01 Sherwin_szw 阅读(8) 评论(0) 推荐(0) 编辑
摘要: var/let/const <script> function show(){ if(1==1){ var name = "szw"; //函数作用域=Python } consolo.log(name); } show(); </script> <script> if(1==1){ let age 阅读全文
posted @ 2022-11-14 16:59 Sherwin_szw 阅读(10) 评论(0) 推荐(0) 编辑
摘要: <template> //使用 <span> {{name}}</span> <span> {{age}}</span> </template> <script> import { reactive, ref ,toRefs} from 'vue'; export default { setup() 阅读全文
posted @ 2022-11-08 21:56 Sherwin_szw 阅读(12) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 14 下一页