Have an array that you need to iterate over? Dying to use javascript 1.8 iterators and generators? (why?!) Anyhow... use
this instead.. IF IF IF ... you don't mind CONSUMING your data :-) (
this = shift)
var s=['prototype.yc','lightbox','dsn'];
while(s.length) document.write('<scr'+'ipt src="/js/'+s.shift()+'.js"></scr'+'ipt>');
No comments:
Post a Comment