会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
东方不败--Never
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
···
14
下一页
2024年9月24日
学习vue——vue2、vue3创建项目及安装包版本
摘要: 一、vue2 # 下载node 、npm nvm install 14.21.3 # 切换国内镜相 npm config set registry=https://registry.npmmirror.com npm i @vue/cli -g vue —version 或者 vue -V # 创建
阅读全文
posted @ 2024-09-24 15:45 东方不败--Never
阅读(149)
评论(0)
推荐(0)
2024年9月23日
学习vue——自定义指令(局部、全局、传值)
摘要: 一、局部自定义指令 二、全局注册自定义指令 三、总结 四、传值 el: 代指元素 binding: 代指v-xx的值,用binding.value 来获取值
阅读全文
posted @ 2024-09-23 12:03 东方不败--Never
阅读(34)
评论(0)
推荐(0)
2024年9月22日
学习vue——ref和$refs、$nextTick
摘要: 一、获取dom 二、获取子组件的方法 三、$nextTick dom执行后,执行$nextTick
阅读全文
posted @ 2024-09-22 10:52 东方不败--Never
阅读(19)
评论(0)
推荐(0)
2024年9月20日
学习vue——非父子相传
摘要: 一、组件之间传递 enentBus.js import vue from 'vue' const Bus = new vue() export default Bus MyHeader.vue 消息传递者 sendMs(){ Bus.$emit('sendMsg','小米花') } MyMain.v
阅读全文
posted @ 2024-09-20 19:04 东方不败--Never
阅读(13)
评论(0)
推荐(0)
2024年9月5日
学习vue——小知识点
摘要: reduce 数组求和 this.list.reduce((sum,item)=>sum+item,0) filter 过滤 this.list.filter(item=>item!=1) toFixed 四舍五入小数点 (this.list[0]).toFixed(2) unshift 添加数组到
阅读全文
posted @ 2024-09-05 11:32 东方不败--Never
阅读(17)
评论(0)
推荐(0)
2024年8月26日
学习vue3——element插槽
摘要: 一、具名插槽、默认插槽、插槽传值 name 命名,#接收 插槽默认name 是default 插槽内容必须要 template 标签包裹 二、实例 input 带有前缀图标 1 <el-input 2 class="inputClass" 3 v-model="form.name" 4 ref="n
阅读全文
posted @ 2024-08-26 10:16 东方不败--Never
阅读(238)
评论(0)
推荐(0)
2024年8月21日
学习vue3——富文本
摘要: npm i tinymce npm i @tinymce/tinymce-vue 3、从node_modules/tinymce 复制样式文件到public 目录下 中文语言包,zh-Hans.js下载地址:https://www.tiny.cloud/get-tiny/language-packa
阅读全文
posted @ 2024-08-21 19:38 东方不败--Never
阅读(115)
评论(0)
推荐(0)
2024年8月20日
学习vue3——分页(前、后端分页两种)
摘要: 一、前端分页 后端将所有数据给前端,前端来实现分页 1 <template> 2 <div class="flex items-center justify-center mt-5"> 3 <el-pagination 4 background 5 v-model:current-page="cur
阅读全文
posted @ 2024-08-20 11:11 东方不败--Never
阅读(1089)
评论(0)
推荐(0)
2024年8月15日
爱心代码雨
摘要: 1 <!DOCTYPE html> 2 <html> 3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 4 5 <head> 6 <title>I love you</title> 7 </head> 8
阅读全文
posted @ 2024-08-15 10:04 东方不败--Never
阅读(146)
评论(0)
推荐(0)
2024年8月10日
学习vue3——搭建前端部分
摘要: 一、创建项目 # 下载node 、npm nvm install 16.15.0 # 切换国内镜相 npm config set registry=https://registry.npmmirror.com # 创建项目 npm init vite@latest shop-admin -- --t
阅读全文
posted @ 2024-08-10 08:49 东方不败--Never
阅读(47)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
14
下一页
公告