Chinaunix首页 | 论坛 | 博客
  • 博客访问: 109653
  • 博文数量: 40
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 423
  • 用 户 组: 普通用户
  • 注册时间: 2013-01-15 11:55
文章分类

全部博文(40)

文章存档

2016年(36)

2015年(2)

2013年(2)

我的朋友

分类: JavaScript

2016-01-22 17:34:35

$R()是new ObjectRange(lowBound,upperBound,excludeBounds)的缩写。

点击(此处)折叠或打开

  1. <html>
  2. <head>
  3. <TITLE> Test Page </TITLE>
  4.  <script src=""></script>
  5.  <script>
  6.   function demo(){
  7.     var range = $R(10,20,false);
  8.     range.each(function(value,index){
  9.      alert(value);
  10.     });
  11.   }
  12.  </script>
  13. </head>
  14. <body>
  15. <input type="button" value="sample count" onclick="demo();"/>
  16. </body>
  17. </html>

阅读(684) | 评论(0) | 转发(0) |
0

上一篇:使用 $H() 函数

下一篇:js正则表达式

给主人留下些什么吧!~~