1、改变路由的哈希模式(在路由中会出现#): 在src/router/index.js中 创建路由对象: const routes = [ {path:"",redirect:"/home"}, {path:"/home",component:Home}, {path:"/cart",comspon ...
分类:
其他好文 时间:
2020-01-01 18:29:17
阅读次数:
421
BEM Block Element Modifier 阅读 http://getbem.com/introduction/https://cssguidelin.es/#bem-l...https://www.w3cplus.com/css/s...http://www.sohu.com/a/150 ...
分类:
Web程序 时间:
2020-01-01 17:02:08
阅读次数:
86
@SpringBootApplication是一个组合注解,用于快捷配置启动类 源码如下: @Target({ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) @Documented @Inherited @SpringBootConfig ...
分类:
移动开发 时间:
2019-12-31 18:58:39
阅读次数:
113
@Component @RabbitListener(queues="my_fanout") public class Consumer { @RabbitHandler public void process(String msg){ System.out.println(msg); } } 但是 ...
分类:
编程语言 时间:
2019-12-30 19:20:34
阅读次数:
90
注解:注解方式将Bean的定义信息和Bean的实现类结合在一起。 @Component:实现Bean组件的定义 @Repository:标注DAO类 @Service:标注业务类 @Controller:标注控制器类 使用@Autowired注解实现 Bean的自动装配,默认是按照类型匹配的。可以使 ...
分类:
编程语言 时间:
2019-12-30 19:07:55
阅读次数:
70
已经推出了很久了, 貌似也有一些人开始使用, 我是在看守望先锋的程序设计相关文章的时候看到 ECS 的, 从它的设计逻辑上看, 核心就是 Composition over inheritance (or composite reuse principle) 组合重用, 也就是对特定的数据组合, 使用 ...
分类:
其他好文 时间:
2019-12-30 19:01:09
阅读次数:
62
is 是组件的一个属性,用来展示组件的名称 is和component联用哈 vue提供了component来展示对应的组件名称 compont是一个占位符,is这个属性,用来展示对应的组件名称 三个子组件 可以向tab栏一样去切换组件哈 ...
分类:
其他好文 时间:
2019-12-29 23:37:18
阅读次数:
93
安装babel-plugin-import插件。下面方法二选一,都可以实现antd的按需加载。 一、配置webpack.config.js文件 二、配置babelrc文件 ...
分类:
Web程序 时间:
2019-12-29 23:31:36
阅读次数:
101
1 <body> 2 <div id="root"> 3 4 </div> 5 <script type="text/babel"> 6 class Box extends React.Component { 7 constructor(props) { 8 super(props) 9 this. ...
分类:
其他好文 时间:
2019-12-29 20:39:26
阅读次数:
91