//对这些元素都加一个class属性class="get_total"$(function(){$(".get_total").each(function(i){varthatId=i.attr('id');i.load('get_total?id='+thatId);});});