Maison  >  Questions et réponses  >  le corps du texte

javascript - 为什么typeof Object 是"function"

typeof Object
//"function"
typeof Object()
//"object"
PHPzPHPz2748 Il y a quelques jours1048

répondre à tous(4)je répondrai

  • PHP中文网

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

    répondre
    0
  • 迷茫

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

    Object 是构造函数

    Object() 等价于new Object()

    répondre
    0
  • 阿神

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

    如果不是 function 就不能 Object ()

    répondre
    0
  • PHPz

    PHPz2017-04-11 12:35:44

    因为 Object 是一个构造函数

    MDN 传送门---Object

    répondre
    0
  • Annulerrépondre