获得徽章 8
在vue2中this.$route.params与this.$route.query的区别:
this.$router.push({ path: '/user/123', query: { id: 456 } });
3
b.example.com中,
主机(Host):b.example.com
子域(Subdomain):b
主域(Domain):example.com
顶级域(TLD):.com
1
多次进行decodeURIComponent等操作会容易bug,做个标记
2
使用nvm安装node后没有npm的情况,试一下删除对应的node版本重装就有了。
3
提供一个axure原型在谷歌浏览器无法预览的简单解决方案:
在产品给你的原型图内,找到resources-chorme,将axure-chrome-extension.crx改成rar,解压后直接在拓展文件加载已解压文件夹,搞定。
评论
react中的ahooks太好用了,现在项目要转成vue,兄弟们有同款工具推荐吗?
2
set $group "default";
if ($http_cookie ~* "version=1.0"){
set $group version1.0_server;
}

if ($http_cookie ~* "version=2.0"){
set $group version2.0_server;
}

location /api {
rewrite ^/api/(.*)$ /$1 break;
proxy_pass http://$group;
}

location /static{
proxy_pass https://$group.com;
}

一套简单的灰度
展开
评论
nginx 内的listen 80; 跟Service的容器端口需对称
评论
针对antd的button组件disabled状态不显示Tooltip的解决办法:
const DisabledButtonWithTooltip = () => {
return (
<Tooltip title="This button is disabled">
<div style={{ display: 'inline-block' }}>
<Button disabled>Disabled Button</Button>
</div>
</Tooltip>
);
};
展开
评论
flexGrow: 1 无法与 table的放大直接匹配,需要修正下放大比例flexGrow: width / totalColumnsWidth
评论
UnoCSS 和 Tailwind CSS 20240731
评论
(0,eval)(this)
涉及逗号运算符, 间接调用,间接获取全局window
1
return cache[xxx] || cache[xxx] = await getXxx()
一个比较巧妙的写法
4
node多版本管理-mac
1.node --version
2.sudo npm cacje clean -f // 清缓存
3.sudo npm install n -g
4.sudo n stable/latest/16.17.0 //下载
5.sudo n //切换
展开
2
什么是WebSockets、服务器发送事件、长轮询、WebRTC、WebTransport?
www.jdon.com
评论
Etag:W/"6606ab07-4b0"
Content-Length:1200
Last-Modified:Fri, 29 Mar 2024 11:50:31 GMT

6606ab07跟最后修改时间相关:new Date(parseInt('6606ab07',16)*1000).toJSON() => 2024-03-29
4b0跟文件大小相关: parseInt('4b0', 16) => 1200
展开
评论
下一页
个人成就
文章被点赞 9
文章被阅读 5,993
掘力值 191
收藏集
13
关注标签
13
加入于