12 lines
399 B
JavaScript
12 lines
399 B
JavaScript
"use strict";
|
|
function genPaths(base, prefix, count, ext = "png", startIndex = 0, pad = false) {
|
|
return Array.from({
|
|
length: count
|
|
}, (_, i) => {
|
|
const idx = pad ? String(i + startIndex).padStart(2, "0") : i + startIndex;
|
|
return `${base}/${prefix}${idx}.${ext}`;
|
|
});
|
|
}
|
|
exports.genPaths = genPaths;
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/compontent/public/issame.js.map
|