lsof -i:8888
关闭使用这个端口的程序,使用kill + 对应的pid
kill -9 PID号
lsof -i:8888
关闭使用这个端口的程序,使用kill + 对应的pid
kill -9 PID号
function numFormat(num) {
if(!num) return ''
return (num.toString().indexOf('.') !== -1) ? num.toLocaleString() : num.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,');
}
console.log(numFormat(123456.78))
const start = new Date(new Date().toLocaleDateString()).getTime();
console.log(start); // 1577808000000 毫秒
let arr.sort(function(a, b) {
returna.name.localeCompare(b.name, 'zh-CN')
})
nginx -t
然后返回成功后重启:
nginx -s reload
tail -f app.log