为什么将alert介入函数function外面不能出现警告框
<scripr type="text/javascript"> function rec(){ var mynum = "i love javascript"; } alert(mynum) </script>
<scripr type="text/javascript"> function rec(){ var mynum = "i love javascript"; } alert(mynum) </script>
2016-03-25
举报