#

js prototype

  • js的__proto__、constructor和prototype屬性

    __proto__和constructor屬性是對(duì)象所獨(dú)有的;prototype屬性是函數(shù)所獨(dú)有的。但是由于JS中函數(shù)也是一種對(duì)象,所以函數(shù)也擁有__proto__和constructor屬性。 先來

    作者:firekido
    2020-07-25 11:41:45