编写一个js函数 该函数调用时知道传了多少个参数过来

2025-03-13 04:18:03
推荐回答(1个)
回答1:

function getArguments(){
    alert('你传入'+arguments.length+'个参数');
}