上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页
摘要: <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 阅读(9) 评论(0) 推荐(0) 编辑
摘要: let info = "我是" + "?" + "今年技术"; <script> let name = "张开"; let age = 73; let info = `我叫${name},今年${age}岁`; </script> 阅读全文
posted @ 2022-11-14 17:01 Sherwin_szw 阅读(11) 评论(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 阅读(12) 评论(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 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 基本使用 <template> <el-button type="primary" @click="handle">{{ count }}</el-button> <el-button type="primary" @click="handle1">统计</el-button> </template 阅读全文
posted @ 2022-11-08 21:30 Sherwin_szw 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 概念 Vue Router 是 Vue.js 的官方路由。它与 Vue.js 核心深度集成,让用 Vue.js 构建单页应用变得轻而易举。功能包括: 嵌套路由映射 动态路由选择 模块化、基于组件的路由配置 路由参数、查询、通配符 展示由 Vue.js 的过渡系统提供的过渡效果 细致的导航控制 自动激 阅读全文
posted @ 2022-11-08 11:47 Sherwin_szw 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 概念 状态管理器,存取数据用的,可以跨组件通信(屏蔽了组件的父子关系) 定义store //store/index.js import { createStore } from "vuex"; const store = createStore({ state:{ // 存数据的地方 count:0 阅读全文
posted @ 2022-11-07 15:45 Sherwin_szw 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 前端存数据的地方 -cookie中:借助第三方插件,自己用js写,超时时间+发送请求自动携带。 -sessionStorage:关闭浏览器,它就没了 -localStorage:永久存在,手动删除,或浏览器存满了、 使用:sessionStorage sessionStorage.setItem(' 阅读全文
posted @ 2022-11-04 15:37 Sherwin_szw 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 使用包管理器 npm install element-plus --save 完整引入 // main.js import { createApp } from 'vue' import ElementPlus from 'element-plus' import 'element-plus/dis 阅读全文
posted @ 2022-11-04 13:56 Sherwin_szw 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 加载<style scoped> 表示写的样式,只在当前组件生效,不会影响到其他组件,造成污染 阅读全文
posted @ 2022-11-04 10:33 Sherwin_szw 阅读(8) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页
点击右上角即可分享
微信分享提示
🚀
回顶
收起
  1. 1 404 not found REOL
404 not found - REOL
00:00 / 00:00
An audio error has occurred.