V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  yangg  ›  全部回复第 5 页 / 共 81 页
回复总数  1610
1  2  3  4  5  6  7  8  9  10 ... 81  
336 天前
回复了 ztm0929 创建的主题 问与答 大家有哪些正在使用的 Docker 服务?
ollma 上次在 docker 里跑很慢很费资源,mac 真实机不会,
339 天前
回复了 liox 创建的主题 分享发现 京东 APP 搜索 《夜》,是自身功能?
我的-小程序-搜索 夜
@erquren ubuntu 22.04 怎么升级?
阿里云的切到 ubuntu 官方镜像,还是

sudo apt full-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
gsasl-common libgsasl7
Learn more about Ubuntu Pro at https://ubuntu.com/pro
#
# OpenSSH CVE-2024-6387 has been fixed for 22.04 LTS, 23.10 and 24.04 LTS.
# RegreSSHion: Possible RCE Due To A Race Condition In Signal Handling.
# For more details see: https://ubuntu.com/security/notices/USN-6859-1.
#
The following packages have been kept back:
python3-update-manager ubuntu-advantage-tools update-manager-core
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
➜ apt apt policy openssh-server
openssh-server:
Installed: 1:8.9p1-3ubuntu0.10
Candidate: 1:8.9p1-3ubuntu0.10
Version table:
*** 1:8.9p1-3ubuntu0.10 500
500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
100 /var/lib/dpkg/status
1:8.9p1-3 500
500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
就是从 curl 导入的不能归类到 api 里,只能到 request 里,很难受啊
之前用 postman ,套个浏览器后就非常慢,都很少用,用了一年 apifox ,很好用。
341 天前
回复了 shilianmlxg 创建的主题 程序员 前端怎么定义字典更好呢
1. 方便直接从名称取值
2. 同时方便下拉列表显示
341 天前
回复了 shilianmlxg 创建的主题 程序员 前端怎么定义字典更好呢
使用
export const [ContractType, ContractTypeOptions] = createEnum([
{ name: 'Standard', text: '标准合同', code: 1 },
{ name: 'NonStandard', text: '非标准合同', code: 0 },
])

ContractType.Standard = 2 // ❌ throws a 'Error'.
341 天前
回复了 shilianmlxg 创建的主题 程序员 前端怎么定义字典更好呢
之前写过一个

/**
* @param {{ name: string, text: string, code?: number | string }[]} enums
* @returns {[Object, {id: number | string, text: string}[]]}
*/
function createEnum(enums) {
const Enum = {}
const options = []
for (let i = 0; i < enums.length; i++) {
const x = enums[i]
const code = 'code' in x ? x.code : i + 1
Enum[x.name] = code
// Enum[code] = x.text // cannot use Object.values
Object.defineProperty(Enum, code, {
value: x.text,
// implies enumerable: false
})
options.push({id: code, text: x.text})
}
Object.freeze(Enum)
return [Enum, options]
}
@digd 你不用标注?
348 天前
回复了 lizw1017 创建的主题 宽带症候群 DDNS 和 nginx-proxy-manager 访问不了
周末加了两天班 tailscale 部分访问公司网络还是很香啊,
351 天前
回复了 huson 创建的主题 Apple 给 6 岁娃上网课 iPad 12.9 OR Macbook air ?
科大迅飞 16 寸,主要是屏幕大。更适合学习类的
你用 pg 了再用 mysql 才知道多少东西 mysql 没有的。
354 天前
回复了 tsohgdivil 创建的主题 Apple Zed Editor:最完美的快速启动编辑器
用了 1 ,两个月已经删除,总感觉不是很顺手
连啥数据库都不说,大家来猜猜?数据库里每个表的占用呢?
361 天前
回复了 15079060090 创建的主题 汽车 汽车前挡玻璃 这种污渍如何除去
@15079060090 那你不觉得这是油?
只能两个一起买回来,看哪个显示效果好。不然很难对比
2024-06-07 16:51:55 +08:00
回复了 SingeeKing 创建的主题 分享创造 利用 Cloudflare Workers 自建 Docker 镜像
这个文档站是自己部署的?还不错,速度快。
2014 mbp16g ,勉强够用,想换,迫于钱包
1  2  3  4  5  6  7  8  9  10 ... 81  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2644 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 34ms · UTC 12:56 · PVG 20:56 · LAX 05:56 · JFK 08:56
Developed with CodeLauncher
♥ Do have faith in what you're doing.