通过域名跳转的方式获取参数(http://localhost:4200/second/110?productId=1&title=moon) 这种方式配置路由,其中:id是必需的参数,其它的是可配的,写在?后面: { path: 'second/:id', component: SecondComp ...
分类:
其他好文 时间:
2020-08-08 17:39:31
阅读次数:
110
双向绑定就是属性绑定+事件绑定。 实战 按照惯例,在组件的根目录创建index.ts 导出这个组件。 export * from ..... 这样导入的就是从components/index下面导入进来的。 根组件的页面,使用这个组件 组件就显示出来了 value我们进行绑定 ts内定义userna ...
分类:
其他好文 时间:
2020-08-06 09:21:18
阅读次数:
63
支持多应用 使用多线程支持多个请求同时访问同一个页面,下面通过建立Context类来支持多个请求同时访问多个应用 设计的思想大概是 建立一个Context类,这个类具有两个字段,一个是应用的路径映射,例如ROOT路径映射到/,等等,在bootstrap中建立一个映射用于保存path和context。 ...
分类:
其他好文 时间:
2020-08-05 00:03:48
阅读次数:
52
宽度改变从而改变某个元素的样式 @media screen and (max-width:750px) {/* 仿bootstrap的自适应隐藏功能,当屏幕宽度小于750时,让它隐藏 */ .h-right { display: none; } /* 改变该元素的上边距 */ .main_right ...
分类:
其他好文 时间:
2020-08-03 18:38:20
阅读次数:
76
Kendo UI for jQuery R2 2020 SP1试用版下载 Kendo UI目前最新提供Kendo UI for jQuery、Kendo UI for Angular、Kendo UI Support for React和Kendo UI Support for Vue四个控件。Ke ...
分类:
Web程序 时间:
2020-08-03 09:53:26
阅读次数:
112
查看消费组详情: ./bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --group test-consumer-group 查看topic详情: ./bin/kafka-topics.sh --to ...
分类:
其他好文 时间:
2020-07-31 18:03:33
阅读次数:
83
一、安装JDK 略过 二、安装Zookeeper 由于Kafka的运行依赖于Zookeeper,所以在运行Kafka之前需要安装并运行Zookeeper 1.Zookeeper下载路径 http://zookeeper.apache.org/releases.html#download 2.解压到文 ...
分类:
其他好文 时间:
2020-07-30 22:13:36
阅读次数:
66
#1.1 kafka启动命令nohup bin/kafka-server-start.sh config/server.properties & #1.2 kafka停止命令bin/kafka-server-stop.sh #1.3. kafka重启systemctl restart kafka # ...
分类:
其他好文 时间:
2020-07-30 14:45:42
阅读次数:
79
2020/07/29 bootstrap bootstrapTable在设置固定列宽的时候要先在table标签上加 style="table-layout: fixed;word-break:break-all; word-wrap:break-all;" 不然,width无效。 table-lay ...
分类:
其他好文 时间:
2020-07-29 17:48:25
阅读次数:
67