<form name="theform" id="theform"> </form> <script language="javascript"> var a alert(typeof(b)); //这里提示undefined if(theform.datasource==null) alert("null") else if(theform.datasource==undefined) alert("undefined") else alert("ok"); </script>
请问条件判断语句会走哪条分支?最后提示的是什么?
答案:走null分支,提示null