new運(yùn)算符創(chuàng)建一個(gè)自定義對象或具有構(gòu)造函數(shù)的內(nèi)置對象的實(shí)例
語法
new constructor[([argument])]
constructor? 一個(gè)指定對象實(shí)例的類型的函數(shù)
argument? 一個(gè)用來被constuctor調(diào)用的參數(shù)列表
new運(yùn)算符創(chuàng)建一個(gè)自定義對象或具有構(gòu)造函數(shù)的內(nèi)置對象的實(shí)例
語法
new constructor[([argument])]
constructor? 一個(gè)指定對象實(shí)例的類型的函數(shù)
argument? 一個(gè)用來被constuctor調(diào)用的參數(shù)列表