prototype javascript library Range example
<script type="text/javascript" charset="utf-8">
function doc(argument) {
document.write(argument);
document.write("<br />\n");
}
var orf = $R('a', 'g', false);
doc('orf exclusive is false:')
orf.each(function (c) {
doc(c);
});
doc('ort exclusive is true:')
var ort = $R('a', 'g', true);
ort.each(function (c) {
doc(c);
});
doc('orf.include("g") = ' + orf.include('g'));
doc('ort.include("g") = ' + ort.include('g'));
</script>
No comments :
Post a Comment