[Javascript] 物件的 constructor 屬性?




直接從兩個例子裏面來看 constructor 屬性裡面存放什麼:

  1. 如果是內建的物件:

  1. 如果是自訂的物件:

上例的輸出結果如下:

原文位址:




Be the first to comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.