path常用方法 1、path.join([..paths]) >[...path] 代表 路径片段 使用平台特定的拼接符将路径片段连接到一起,返回一个路径(注意: 长度为0则忽略,'.'当前目录, '..' 上一级目录),如: path.join('/first', 'second/third', Read More
posted @ 2020-02-12 16:21 冰可乐不是雪碧 Views(417) Comments(0) Diggs(0) Edit
1、console.log():调试中最常用的方法,用于在控制台窗口显示信息。 > console.log(123); //123 2、console.warn():输出信息时,在最前面加一个黄色三角,表示警告 > console.warn('输出警告信息'); //输出警告信息 3、console Read More
posted @ 2020-02-12 15:46 冰可乐不是雪碧 Views(1579) Comments(0) Diggs(0) Edit