prototype.js的系列文章——$R()函数
来源:互联网 发布:如何在电脑上安装java 编辑:程序博客网 时间:2024/05/02 01:42
$R()方法是new ObjectRange(lowerBound, upperBound, excludeBounds)的一个简单快捷的使用方式。
ObjectRange类文档里面有完整的解释。 同时,我们来看看一个简单的例子, 来演示通过each方法遍历的用法。 那个方法的更多解释在Enumerable对象文档里面。
<script>
function demoDollar_R(){
var range = $R(10, 20, false);
range.each(function(value, index){
alert(value);
});
}
</script>
<input type="button" value="Sample Count" onclick="demoDollar_R();" >
- prototype.js的系列文章——$R()函数
- prototype.js的系列文章——$()函数
- prototype.js的系列文章——$F()函数
- prototype.js的系列文章——$()函数
- prototype.js的系列文章——$F()函数
- prototype.js的系列文章——$A()函数
- prototype.js的系列文章——$H()函数
- prototype.js的系列文章——Try.these())函数
- prototype.js的系列文章——关于prototype.js
- prototype.js的系列文章——Ajax.Request类
- prototype.js的系列文章——Ajax.Updater类
- prototype.js的系列文章——Ajax.Request类
- Prototype使用$R()函数
- R的极客理想系列文章
- R-CNN系列文章
- 理解prototype.js的bind函数
- 理解prototype.js的bind函数
- js prototype call 函数的讲解
- label 的属性及事例
- 偷听北京:无意而真实的片段(6)
- prototype.js的系列文章——$H()函数
- 在关键时刻我都做出错误的选择
- 分页存储过程
- prototype.js的系列文章——$R()函数
- ERP的概念与历程
- 深入理解sizeof
- 李阳疯狂英语突破对话(31)-吝啬男友
- prototype.js的系列文章——Try.these())函数
- 每天学一点flash(28) as3.0 自定义类 笔记(2)
- asp.net下的CSS失效解决办法
- Linux Kernel Project
- 低头不见抬头见介绍,低头不见抬头见在线观看