==================================== $('img').each(function(){ this.alt='This is image['+n+'] with an id of '+this.id; }); var allAlts = new Array(); $('img').each(function(){ allAlts.push(this.alt); }) 写一个动态获取div高度和宽度 function report(){ $('#display'…