<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body> </body>
<script>
/*function outer(){
var a = 1;
function inner(){
a++;
alert(a);
}
return inner();
}
outer();
outer();*/ /*var name = 123;
var obj = {
name:456,
getName:function(){
return this.name;
// return function(){
// return this.name;
// }
}
};
alert(obj.getName());*/ /*var a = 1;
function b(){
a = 2;
document.write(a);
document.write("<br/>");
function a(){};
}
// b();
// document.write(a);
var bar = b;
alert(bar());*/
var a = 1; function a(){
document.write(a);
} document.write(a);
document.write("<br/>");
a();
</script>
</html>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>

</body>
<script>
/*function outer(){
var a = 1;
function inner(){
a++;
alert(a);
}
return inner();
}
outer();
outer();*/

/*var name = 123;
var obj = {
name:456,
getName:function(){
return this.name;
// return function(){
// return this.name;
// }
}
};
alert(obj.getName());*/

/*var a = 1;
function b(){
a = 2;
document.write(a);
document.write("<br/>");
function a(){};
}
// b();
// document.write(a);
var bar = b;
alert(bar());*/
var a = 1;

function a(){
document.write(a);
}

document.write(a);
document.write("<br/>");
a();
</script>
</html>

最新文章

  1. 三种POST和GET的提交方式
  2. tableview左滑按钮 tableviewcell自定义左滑按钮
  3. Objective-C 链式语法的实现
  4. DataTable.Compute()用法
  5. org.springframework.web.context.ContextLoaderListen 报错解决办法
  6. python用httplib模块发送get和post请求
  7. [Unity菜鸟] FBX模型动画提取
  8. 文件图标css样式
  9. css3购物网站商品文字提示实例
  10. 【android】两个按钮的宽度各占屏幕的一半
  11. curl向web服务器发送json数据
  12. [Windows编程] #pragma once 和#ifndef ... #define ... #endif 比较
  13. Codeforces 510B Fox And Two Dots 【DFS】
  14. JavaScript事件的几个细节
  15. Redis基础学习(三)&mdash;Key操作
  16. 微信小程序之HTTPS请求
  17. 每周分享五个 PyCharm 使用技巧(一)
  18. c++ 右值引用,move关键字
  19. 关于VS2017 添加 EF的MVC控制器报错的解决方法
  20. JSP 动作

热门文章

  1. LINUX下渗透提权之嗅探技术
  2. string c++ 转义序列
  3. DevExpress中的lookupedit的使用方法详解
  4. javascript 中用到的时间戳函数
  5. Android布局属性集合
  6. Fireworks层与蒙版的概念和用法
  7. centos 7安装 navicat
  8. Adobe Acrobat Pro 11安装激活
  9. C#字符串来袭——因为爱,所以爱
  10. ajax请求接口数据