📜  js 验证 mongodb id - Javascript 代码示例
📅  最后修改于: 2022-03-11 15:04:27.029000             🧑  作者: Mango
代码示例1
//Validate MongoDB ID
const oid = 'abcd56789012345678901234'
return oid.length === 24 && !isNaN(Number('0x' + oid))