<body>??
<p>?arguments.length?屬性返回函數(shù)接收到參數(shù)的個(gè)數(shù):</p>???
<p?id="demo"></p>
<script>????
function?myFunction(a,?b)?{//傳給函數(shù)的參數(shù)超出范圍卻不報(bào)錯(cuò)????????
????return?arguments.length;???
?}????
document.getElementById("demo").innerHTML?=?myFunction(4,?3,?2,?1);???
</script>
</body>
js怎么才能報(bào)錯(cuò)?
錯(cuò)過(guò)了年華
2018-08-10 10:22:45