var?arr=[alert];
arr[0]('hi!');//直接調(diào)用,報(bào)錯(cuò):"Uncaught?TypeError:?Illegal?invocation"
var?b=arr[0];
b('hi!');//這樣就可以運(yùn)行,不知何故??
數(shù)組里放函數(shù)再調(diào)用
qq_殺意隆_0
2017-12-06 08:55:11