jquery: load values from external html and populate many local <div> fields, with one read of the html
问题 I'm using this code now, works great except that it makes three requests to the webserver: var refreshspeed=1000 function moreSnow() { $("#uptimedynamic").load("index.html #uptimedynamic"); $("#cpuloaddynamic").load("index.html #cpuloaddynamic"); $("#meminfodynamic").load("index.html #meminfodynamic"); setTimeout("moreSnow()", refreshspeed); } Can someone tell me how to make it do the same thing, but with only one read of index.html? It needs to stay in the same repeating loop setup :) 回答1: