You can use number as function/variable name, the numberic name can't be accessed from parent scope, but can be accessed by 'this' in private scope.

var o=
{
attr1:'value of attr1',
1:'private attr ,the index is 1',
301:function(){
console.log('private function , name is 2');
},
fun1:function(){
console.log(this[1]);
this[301].call(this);
}
}; o.fun1();

最新文章

  1. 用Taurus.MVC 做个企业站(下)
  2. HTTP返回码中301与302的区别 (转载)
  3. DevOps是云计算时代的开发与运营
  4. Three.js 入门指南(核心对象)
  5. DNS-2
  6. 2-2. Initializing Objects with Initializer Lists
  7. Java web 学习之旅
  8. ExtJS4.2 根据数据库记录构建树形菜单
  9. 动手写一个快速集成网易新闻,腾讯视频,头条首页的ScrollPageView,显示滚动视图
  10. <thead>
  11. 一次处理ORA-07445的历险记(转)
  12. 对boost::shared_from_this的进一步封装
  13. SQL Server 索引整理与堆重组。
  14. Spring AOP报错
  15. 添加事务后 org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type available
  16. jmeter+ant+jenkins的自动化接口测试
  17. HTTP 404 Not Found Error with .woff or .woff2 Font Files
  18. Java中如何设置表格处于不可编辑状态
  19. ubuntu下面解压tar.gz包报错:tar命令报错: gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error
  20. KRKR基础篇(二)

热门文章

  1. Python搭建简易HTTP服务(3.x版本和2.x版本的)
  2. systemctl
  3. php7对redis的扩展及redis主从搭建
  4. c3p0配置xml
  5. C# 测试程序运行时间和cpu使用时间
  6. Silverlight DataGrid标题行居中
  7. c语言学习的第四天2
  8. 正确使用stl map的erase方法
  9. pure css做的pc登陆界面
  10. Python核心编程--学习笔记--9--文件和输入输出