随笔分类 -  vue

vue+element ui后台管理系统
摘要:参考资料:Vue+ElementUI 搭建后台管理系统(实战系列一)-蒲公英云 (dandelioncloud.cn) github: elunez/eladmin-web: eladmin jpa版本:前端源码,项目基于 Spring Boot 2.1.0 、 Spring Boot Jpa、 S 阅读全文

posted @ 2023-07-25 10:01 荆棘人 阅读(467) 评论(0) 推荐(0) 编辑

vue组件中引入自定义js文件
摘要:在组件的script标签内直接引入: import myFunction from '@/util/custom.js'; 开始使用自定义js中的方法: export default { // ... other Vue component options methods: { someMethod 阅读全文

posted @ 2023-07-25 09:46 荆棘人 阅读(238) 评论(0) 推荐(0) 编辑

vue中ref的用法
摘要:1,可以引用元素,通过this.$refs.domxx直接操作元素。 <div ref="domxx"></div> methods: { getxx() { console.log(this.$refs.domxx) // 访问DOM元素 } } 2,可以绑定组件实例,访问组件的属性和方法; 参考 阅读全文

posted @ 2023-07-24 10:37 荆棘人 阅读(57) 评论(0) 推荐(0) 编辑

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

统计

点击右上角即可分享
微信分享提示