开发者

array with image path (uri) and caption

The best way to get into and array an imag开发者_开发百科e url and caption to that image. this work but seem not optimum...

var imgs = Array();
imgs[0] = Array("1","a");
imgs[1] = Array("2","b");
imgs[2] = Array("3","c");

javascript and jquery used, maybe there is a bettre semantic to write it down... it work, but look ugly to me


Arrays in JavaScript have a literal syntax, if that's what you're asking..

var array = [["foo","bar"],["baz","quux"]]
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜