Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (20 sloc) 355 Bytes
<html>
<head>
<meta charset="utf-8" />
<title></title>
<!-- ECMA5 Scope-->
<script type="text/javascript" src="http://lib.sinaapp.com/js/jquery/1.7/jquery.min.js" ></script>
<script type="text/javascript">
(function(){
var x=1;
function foo(){
alert(x); //x===2
};
x=2;
foo();
}());
</script>
</head>
<body>
</body>
</html>