Access all local variables

前端 未结 2 1046
别跟我提以往
别跟我提以往 2020-12-06 05:26

Every global variable in javascript is a property of \'window\'

Apparently all local variable (aswell as arguments) are stored as properties of the \'Call object\' (

2条回答
  •  甜味超标
    2020-12-06 06:24

    You get an implicit array called "arguments" in every function but beside this there is no such thing.

提交回复
热议问题