摘要: 我们通常会在实际开发中,将项目进行分包处理,以此加快项目的速度 即使用异步组件 //异步组件,分包处理 import {defineAsyncComponent} from "vue"; import Loading from "@/11_异步组件的使用/Loading"; //1. const A 阅读全文
posted @ 2022-03-06 17:34 李白lib 阅读(489) 评论(0) 推荐(0)
摘要: 当我们在父组件定义了一个数组, data() { return { name: ["lkx", "msx"] } } 想把它传到子组件处理后 props: { names: { type: Array, default: () => [] } } 通过插槽的方式再传送回父组件 <template v 阅读全文
posted @ 2022-03-05 22:01 李白lib 阅读(454) 评论(0) 推荐(0)
摘要: 当我们在父组件中想要为子组件的某一个标签添加一些样式(注意,这里的是指attributes,css样式只是其中一种属性而已) <show-message id="lkx" class="lkx" title="HHH" content="123"></show-message> 如果不做任何设置,那 阅读全文
posted @ 2022-03-05 10:14 李白lib 阅读(473) 评论(0) 推荐(0)
摘要: <?xml version="1.0" encoding="UTF8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 阅读全文
posted @ 2021-11-24 15:43 李白lib 阅读(83) 评论(1) 推荐(0)
摘要: public class MybatisUtils { private static SqlSessionFactory sqlSessionFactory; static { try { //获取工具类SqlSessionFactory对象 String resource = "mybatis-c 阅读全文
posted @ 2021-11-24 14:24 李白lib 阅读(167) 评论(0) 推荐(0)