List all js global variables used by site (not all defined!)

前端 未结 9 1890
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-04 13:16

What is the way to list all global variables that have been used by the site? Can any browser javascript debugger do that? By used I mean READ, not changed/added. Detect ifr

9条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-04 13:35

    You can try using JetBrains PhpStorm that's what I do, you can get a trial of 30 days for free for any system. Then you check on JSLint or JSHint or both I cant remember and then all your unused variables are underlined, highlighted with different color (according to theme) and visible on the scrollbar and when you hover over them it says unused variable;

    EDIT: I think community version is free now.

提交回复
热议问题