jQuery-photoClip手机图片裁剪
代码片段:
function lazyCount() {
var currentBarPie, toValue, itemsCount;
function step(t) {
var itemIdx = Math.round(itemsCount * (toValue / 100) * t);
document.getElementById(currentBarPie.id + 'Item' + itemIdx).checked = true;
}
for (var i = barPies.length; i--;) {
if (window.CP.shouldStopExecution(2)) {
break;
}
currentBarPie = barPies[i];
toValue = currentBarPie.dataset.toValue;
if (toValue) {
itemsCount = currentBarPie.dataset.itemsCount;
barPie.update(currentBarPie, toValue, 1.5, step);
}
}
window.CP.exitedLoop(2);
}
申明:php中文网下载站匠心打造专业的IT资源下载站!一切资源免费,来源网络收集,请自行检测软件的完整性。交流QQ群:916808767