var first = 'hello nodejs';
console.log(first);
function fn (){
console.log('fn函数被调用了');
}
fn ();
for (var i = 0; i <5; i ++) {
console.log(i);
}
if (true){
console.log('123');
}
console.log('文件被修改了')
global.console.log('我是global对象下面的console.log方法输出的内容');
global.setTimeout(function() {
console.log('123');
}, 2000);
console.log('我是global对象下面的console.log方法输出的内容');
setTimeout(function() {
console.log('456');
}, 2000);
原文地址:https://www.cnblogs.com/jianjie/p/12237569.html
时间: 2024-10-13 05:26:40