API
1) API for getting URLs in Multi-URL mode - a JavaScript function in zzllrr Imager Geek to get URLs
小乐图客获取网址的API函数(多网址取图模式中支持)
urlArr(selector,[attrbute])
selector is for jQuery
【selector,元素选择器(写法同jQuery)】
[attribute] is optional and the default attribute is href
【attribute,属性,可选。默认是href属性】
—————————————————————————————
For example,
【例如】
return urlArr('a')
return urlArr('a[href]:has(img)')
return urlArr('img[src]','src')
—————————————————————————————
2) API for inputting multiple URLs - special expression in zzllrr Imager Geek to input URLs in one line
小乐图客多网址表达式(多个有规律的网址进行简化写成一行的形式)
[*xxx]
xxx is Your Expression stands for multiple URLs
【其中xxx,是小乐图客支持的多网址表达式】
—————————————————————————————
For example,
【例如】
http://www.your-website.com/201206/[*1-4].html
=
http://www.your-website.com/201206/1.html
http://www.your-website.com/201206/2.html
http://www.your-website.com/201206/3.html
http://www.your-website.com/201206/4.html
—————————————————————————————
a) support for multi-selection separated by comma, for example:
【支持多选,以英文逗号,隔开,例如】
[*2,4,6] = 2,4,6
[*a,c,h] = a,c,h
————————————————————————————————————————
b) support for increasing numbers or characters, separated by hyphen, for example:
【支持递增,以短横线-隔开,例如】
[*1-12] = 1,2,3,4,5,6,7,8,9,10,11,12
[*01-12] = 01,02,03,04,05,06,07,08,09,10,11,12
[*a-c] = a,b,c
c) support for composite operations, for example:
【支持复合形式,以逗号、短横线混合,例如】
[*1-3,5,8] = 1,2,3,5,8
[*a-c,f,l-n] = a,b,c,f,l,m,n