AjaxHistory Ajax调用的返回功能
阿贾克斯历史Ajax调用的返回功能。我怎样才能使用它?更新历史在项目中使用ajax栈,ajax调用函数还需要调用ajaxHistory.js的history_update(ajaxCallString)函数。
例子:假设我有一个函数(ajaxCallFunction),它通过ajax调用与服务器交互。
function ajaxCallFunction() {
// this an ajax call
...
}
要使用ajax堆栈,ajaxCallFunction应如下所示:
function ajaxCallFunction() {
// here, we tell the history to add an ajax call to the history.
// we give the name of the current function
}
下载地址
用户评论