加var 与不加var声明变量有什么区别?
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>变量</title> <script type="text/javascript"> var a=4; b=5;//这两个变量使用有什么区别呢? </script> </head> <body> </body> </html>
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>变量</title> <script type="text/javascript"> var a=4; b=5;//这两个变量使用有什么区别呢? </script> </head> <body> </body> </html>
2015-06-02
举报