Calling a Javascript Function from Console

后端 未结 5 2061
礼貌的吻别
礼貌的吻别 2020-12-23 16:18

In Chrome\'s JavaScript console, how do I call a function that belongs to a .js file included in the webpage I am viewing?

5条回答
  •  太阳男子
    2020-12-23 16:44

    If it's inside a closure, i'm pretty sure you can't.

    Otherwise you just do functionName(); and hit return.

提交回复
热议问题