提示:扫一扫查出行【扫一扫了解最新限行尾号】复制提示 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)}