function my_func(a, b){
if(typeof(a) !== 'undefined'){
// do stuff
}
return b;
}
How can I call this function will only the second ar开发者_StackOverflow中文版gument? In other words, I want a to be undefined.
my_func(undefined, b);
精彩评论