2014-03-30 16 views

回答

2

不能將普通對象用作可調用實體,但函數是一種對象類型,因此您可以向函數添加屬性。

var onLoad = function(){ 

}; 

onLoad.error = function(){ 

}; 
相關問題