![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
angular
cautionHua
喜欢做自己喜欢的事情,希望跟更优秀的人一起变的优秀
展开
-
如何在浏览器中获取到接口的Response Headers的数据
记录一下今天在不同的框架中怎么获取到浏览器接口中的Reasponse Headers中的数据。一、React项目中export() { return request(`/api/vitroFree/onePartNotRegist/${companyId}/export`, { method: 'GET', headers: { 'Content-Type': 'application/json' }, responseType: 'blob' |原创 2021-09-23 16:21:07 · 2116 阅读 · 0 评论 -
一招搞定angular项目中菜单栏匹配路由高亮
一招搞定angular项目中菜单栏匹配路由高亮技术栈:Angular + NG-ZORRO当你的项目中选择一个左侧菜单,一刷新就将高亮选中效果刷没了,或者是通过点击某个按钮跳转到别的路由菜单中,结果发现菜单中高亮效果还是保持在之前的样式,要花费不少的时间来同步,这咋搞?通过路由来匹配菜单一招搞定// this.router.url 获取到当前路由<ng-container *ngFor="let menu of menus"> <li nz-menu-item [nzSe原创 2021-08-23 16:17:47 · 658 阅读 · 0 评论