Heim  >  Fragen und Antworten  >  Hauptteil

javascript - 为什么typeof Object 是"function"

typeof Object
//"function"
typeof Object()
//"object"
PHPzPHPz2748 Tage vor1049

Antworte allen(4)Ich werde antworten

  • PHP中文网

    PHP中文网2017-04-11 12:35:44

    Antwort
    0
  • 迷茫

    迷茫2017-04-11 12:35:44

    Object 是构造函数

    Object() 等价于new Object()

    Antwort
    0
  • 阿神

    阿神2017-04-11 12:35:44

    如果不是 function 就不能 Object ()

    Antwort
    0
  • PHPz

    PHPz2017-04-11 12:35:44

    因为 Object 是一个构造函数

    MDN 传送门---Object

    Antwort
    0
  • StornierenAntwort