1. 首页
  2. 考试认证
  3. 其它
  4. AjaxHistory Ajax调用的返回功能

AjaxHistory Ajax调用的返回功能

上传者: 2024-10-21 07:10:45上传 ZIP文件 3.44KB 热度 6次

阿贾克斯历史Ajax调用的返回功能。我怎样才能使用它?更新历史在项目中使用ajax栈,ajax调用函数还需要调用ajaxHistory.jshistory_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

}

下载地址
用户评论