Math.random() javascript function *undefined* on Chrome

前端 未结 4 1669
忘掉有多难
忘掉有多难 2020-12-21 14:09

In first place, I am convinced that this is a trivial question, but I cannot understand why this is happening and I couldn\'t find an answer anywhere else. I googled my issu

4条回答
  •  春和景丽
    2020-12-21 15:12

    Something overrides Math in your code.

    Execute Math in your chrome console. Execute context menu on it and select "Show function definition". This will probably lead you to "Sources" panel and show script where it is being overriden.

    EDIT: this is chrome extension called notscripts. Disable it. Here is the source code for proof: webarchive

提交回复
热议问题