@Component: /** * 原来在XML的配置 * <bean id="IAccountService_annotation" class="main.java.service.impl.IAccountService_annotationImpl" > * <property name=" ...
分类:
编程语言 时间:
2020-07-03 00:49:19
阅读次数:
73
之前的项目架子element是按需引入的,新项目中打算全局引入整个element。(虽然前者会减小项目体积) 在main.js中引入element后出现以下报错信息,和babel-plugin-component有关。在此记录一下 先是把babel.config.js里面配置注释了,还是报错 最后把 ...
分类:
其他好文 时间:
2020-07-03 00:47:18
阅读次数:
89
【SpringCloud】Gateway 配置全局过滤器获取请求参数和响应值 实现Ordered接口getOrder()方法,数值越小越靠前执行,记得这一点就OK了。 获取请求参数RequestBody @Component @Slf4j @AllArgsConstructor public cla ...
分类:
编程语言 时间:
2020-07-02 21:41:53
阅读次数:
139
1. 创建项目, 并同时生成路由文件 2. 创建组件xxx 3. 配置路由, 并在routing文件中导入组件xxx const routes: Routes = [ {path: 'xxx', component: XxxComponent} ]; 4. 在使用的地方用 routerLink <a ...
分类:
其他好文 时间:
2020-07-02 16:44:20
阅读次数:
52
组件 (Component) 是用来构成你的 App 的业务模块,它的目标是 App.vue。 插件 (Plugin) 是用来增强你的技术栈的功能模块,它的目标是 Vue 本身。 简单来说,插件就是指对Vue的功能的增强或补充。 比如说,让你在每个单页面的组件里,都可以调用某个方法,或者共享使用某个 ...
分类:
其他好文 时间:
2020-07-02 16:35:52
阅读次数:
69
<div id="app"> "inputValue 的值:" + {{inputValue}} <my-input v-model="inputValue"></my-input> </div> Vue.component('my-input', { template: '<div><input ...
分类:
其他好文 时间:
2020-07-02 16:13:37
阅读次数:
54
1. 创建模块 ng g module aaa/bbb (会在src/app/aaa下创建bbb模块) ng g module aaa/bbb --routing (创建带路由的模块) 2. 外部模块要访问自定义模块中的组件, 自定义模块需要向外暴露 在module文件中配置 exports: [ ...
分类:
其他好文 时间:
2020-07-02 16:06:26
阅读次数:
52
小程序跳转H5 需要用到小程序的web-view,https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html web-view是承载网页的容器,会自动铺满整个小程序页面。 <view class="page-bod ...
分类:
微信 时间:
2020-07-01 12:58:23
阅读次数:
145
1、用name和params传参(参数不会带在地址中,页面刷新参数会丢失) 对应路由配置 { path: '/detail', name: 'detail', component: detail } 跳转时传参 this.$router.push({ name: 'detail',// 页面名称 p ...
分类:
其他好文 时间:
2020-06-30 17:37:38
阅读次数:
67
首先 定义路由,添加参数 {name: 'preview', path: 'preview/:id', //参数 component: () => import( '@/ ' ) } 传参时使用name和params this.$router.push({ name: 'preview', para ...
分类:
其他好文 时间:
2020-06-30 10:42:32
阅读次数:
309