📜  ipv4 到 int32 js - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:22.450000             🧑  作者: Mango

代码示例1
const ipToInt32 = (ip) => ip.split`.`.reduce((r, e) => r * 256 + +e);