摘要: 1.给vue组件绑定事件时候,必须加上native ,否则会认为监听的是来自Item组件自定义的事件, 2.prevent 是用来阻止默认的 ,相当于原生的event.preventDefault() 阅读全文
posted @ 2020-11-16 22:16 方诚 阅读(536) 评论(0) 推荐(0) 编辑
摘要: "font-awesome": "^4.7.0", "dependencies": { "axios": "^0.18.0", "element-ui": "^2.4.11", "font-awesome": "^4.7.0", "js-cookie": "^2.2.0", "vue": "^2.5 阅读全文
posted @ 2020-11-16 21:37 方诚 阅读(507) 评论(0) 推荐(0) 编辑
摘要: 安装cookie "dependencies": { "axios": "^0.18.0", "element-ui": "^2.4.11", "font-awesome": "^4.7.0", "js-cookie": "^2.2.0", "vue": "^2.5.2", "vue-i18n": 阅读全文
posted @ 2020-11-16 21:31 方诚 阅读(119) 评论(0) 推荐(0) 编辑
摘要: Every programming language has tools for effectively handling the duplication of concepts. In Rust, one such tool is generics. Generics are abstract s 阅读全文
posted @ 2020-11-16 13:02 方诚 阅读(170) 评论(0) 推荐(0) 编辑
摘要: Bean注解 @Bean向spring窗口注册一个bean实例,name可指定别名,不指定时默认为get后的名字的小写 public class Persion { @Bean(name="student2") public Student getStudent() { Student st = n 阅读全文
posted @ 2020-11-16 11:30 方诚 阅读(68) 评论(0) 推荐(0) 编辑