เพื่อให้ทำงานได้อย่างถูกต้อง คุณต้องแก้ไขเหตุการณ์ความคืบหน้า xhr ซึ่งเริ่มทำงานเมื่อสร้างรายการทั้งหมดแล้ว
The xhr ควรจะรู้ว่าคุณต้องการทำอะไร -
var a = new XMLHttpRequest();
a.upload.li = li;
a.upload.addEventListener('progress', function(e) {
var pc = parseInt(event.loaded / event.total * 100);
this.li.find(".progressbar").width(pc);
}, false);