typescrip 十进制转换为16进制

十进制转换为十六进制 

(15).toString(16) //f

全局常量

console.log(process.pid)
__filename :当前文件名
__dirname:当前目录名
console.log(__filename.slice(__dirname.length + 1));     // 打印:example.js
原文地址:https://www.cnblogs.com/boye169/p/15655339.html