function test(){
alert("test");
}
if(typeof test!='undefined')
{alert(1)
test();
}
else
{alert(2)}
if(typeof testStart!='undefined'){
alert(3)
}
else{
alert(4)
testStart();
}
if(typeof test=='function')//这是function匹配
{alert(1)}
function test(){
alert("test");
}
if(typeof test!='undefined')
{alert(1)
test();
}
else
{alert(2)}
if(typeof testStart!='undefined'){
alert(3)
}
else{
alert(4)
testStart();
}
if(typeof test=='function')//这是function匹配
{alert(1)}