随笔分类 -  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 荆棘人 阅读(511) 评论(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 荆棘人 阅读(265) 评论(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 荆棘人 阅读(65) 评论(0) 推荐(0)

导航