通过域名跳转的方式获取参数(http://localhost:4200/second/110?productId=1&title=moon) 这种方式配置路由,其中:id是必需的参数,其它的是可配的,写在?后面: { path: 'second/:id', component: SecondComp ...
分类:
其他好文 时间:
2020-08-08 17:39:31
阅读次数:
110
list arrayList 多线程不安全 //java.util.ConcurrentModificationException 解决办法 * 1,new Vector<>();并发性能下降很大(所有操作都加锁) * 2,Collections.synchronizedList(arrayList ...
分类:
其他好文 时间:
2020-08-07 12:36:37
阅读次数:
77
// 挂载路由导航守卫 router.beforeEach((to, from, next) => { // to 将要访问的路径 // from 代表从哪个路径跳转而来 // next 是一个函数,表示放行 // next() 放行 next('/login') 强制跳转 if (to.path ...
分类:
其他好文 时间:
2020-08-07 00:33:50
阅读次数:
72
一、IBGP水平分割规则 (1)BGP路由在AS之间的防环依赖于AS_Path路径属性,当路由器收到BGP路由后,发现该路由所携带的AS_Path属性中出现了其自己所处的AS号,则路由器认为出现了路由环路,它将忽略该条路由。 (2)AS_Path属性仅在路由离开AS时才会被更改,而BGP路由在AS内 ...
分类:
其他好文 时间:
2020-08-07 00:28:39
阅读次数:
113
Leetcode.345 Reverse Vowels of a String Write a function that takes a string as input and reverse only the vowels of a string. Example 1: Input: "hell ...
分类:
其他好文 时间:
2020-08-06 09:30:08
阅读次数:
64
一、异常 [root@VM_0_4_centos prometheus-grafana-linux]# docker-compose up Traceback (most recent call last): File "/usr/bin/docker-compose", line 9, in <m ...
分类:
其他好文 时间:
2020-08-05 19:45:33
阅读次数:
103
import pickleclass Mypickle: def __init__(self,path): self.file = path def dump(self,obj): with open(self.file, 'ab') as f: pickle.dump(obj, f) def lo ...
分类:
其他好文 时间:
2020-08-05 16:54:47
阅读次数:
72
查询 hadoop dfs -ls / hadoop dfs -ls -R / 注:-R 是递归查询 创建目录 hadoop dfs -mkdir /test 创建文件 hadoop dfs -touchz /aa.txt 查看文件内容 hadoop dfs -cat /test/aa.txt 复制 ...
分类:
其他好文 时间:
2020-08-05 16:53:52
阅读次数:
89