function fn(a,b) { console.log(a+b); }
fn(5); //nan 不懂啊!大神帮忙说说过程!
收起
没有给b赋值,所以b是undefined, a的值是5,5+undefined = NAN(not a number)
报告相同问题?