js数字转ip地址
numberToIp (number) {
let ip = ''
if (number <= 0) {
return ip
}
const ip3 = (number << 0) >>> 24
const ip2 = (number << 8) >>> 24
const ip1 = (number << 16) >>> 24
const ip0 = (number << 24) >>> 24
ip += ip3 + '.' + ip2 + '.' + ip1 + '.' + ip0
return ip
}