获得徽章 0
- 校招太难了叭~本来自己认为有一丝丝希望的美团到了二面,因为工作城市问题面试被搁置了一段时间,结果想回去选择调剂城市的时候居然人招满了,
现在放宽城市投了4、5家公司却一直没有什么进展。。赞过123 - 字节前段校招面试题:
// 请说出以下代码打印的结果
async function async1() {
console.log('async1 start');
await async2();
console.log('async1 end');
}
async function async2() {
console.log('async2');
}
console.log('script start');
setTimeout(function() {
console.log('setTimeout');
}, 0);
async1();
new Promise(function(resolve) {
console.log('promise1');
resolve();
}).then(function() {
console.log('promise2');
});
console.log('script end');
/*
script start
async1 start
async2
promise1
script end
promise2
async1 end
setTimeout
*/
有大佬解释一下吗展开等人赞过2715 - electron 打包后功能缺失,左边是没有打包的,右边是打包之后的,打包后原本应该显示图片的地方图片没有了,试了其他的功能,也谜一般的“消失了”,有没有遇到过相同问题的小伙伴 ?3点赞
- node 的 fs.writeFile() 怎么向像 .gitignore 这样的文件写入内容呢 ?
我直接用下面的代码是写不出来文件的:
fs.writeFile('/.gitignore', '文件内容', 'utf8', err=>{
if(err) console.log('写入出错')
})展开评论点赞