1 回答
摩诃迦叶
TA贡献146条经验 获得超54个赞
因为你把function a(){}放在条件判断里了,判断完a就没了。
function a(){}
if(a){
console.log(typeof a);
}这样写试试
添加回答
举报
0/150
提交
取消
