jQuery API | jQuery API 中英文对照版 - jQuery在线查询手册 |
$.getIfModified(url, params, callback) |
$.getIfModified(url, params, callback)
当远程页面被修改后,用该函数通过HTTP GET请求方式装入远程页面。 返回值:XMLHttpRequest 参数:
示例: $.getIfModified("test.html"); 示例: $.getIfModified("test.html", { name: "John", time: "2pm" } ); 示例: $.getIfModified("test.cgi", function(data){ alert("Data Loaded: " + data); }); 示例: $.getifModified( "test.cgi", { name: "John", time: "2pm" }, function(data){ alert("Data Loaded: " + data); } ); Load a remote page using an HTTP GET request, only if it hasn't been modified since it was last retrieved. Return value: XMLHttpRequest
Example: $.getIfModified("test.html"); Example: $.getIfModified("test.html", { name: "John", time: "2pm" } ); Example: $.getIfModified("test.cgi", function(data){ alert("Data Loaded: " + data); }); Example: $.getIfModified("test.cgi", { name: "John", time: "2pm" }, function(data){ alert("Data Loaded: " + data); } ); |