<script type="text/javascript+protovis">
function go(x)
{
return 2 * x;
}
var range1 = pv.range(10).map(go);
alert(range1); //0,2,4,6,8,10,12,14,16,18
</script>
function go(x)
{
return 2 * x;
}
var range1 = pv.range(10).map(go);
alert(range1); //0,2,4,6,8,10,12,14,16,18
</script>
No comments:
Post a Comment