Two questions about window?

what is the meaning of 1.Window as a constructor in js, how to use it, and what effect it has;

Why do you specify window to point to yourself under

2.window (I don"t know if you understand it correctly), that is, window.window;

Mar.21,2021

  1. Window is the constructor of window , but < del > is not available for you to use. < / del >, according to the reminder of @ liqi0816 , the only usage you can find so far is instanceof Window .
  2. if all variables are not found, they are finally found under window , and window is no exception. (I don't know how to describe it. If it doesn't satisfy your problem 2, then window will be an exception at this time.)

    name === window.name;//true
    window === window.window.window;//true
  3. window is, to be exact, a Web API , depending only on the running environment. (I don't know how to describe it, but I just want to say Web API , which should not be simply understood as js , such as ! document.all=false )
Menu