运用Iframe和script可以实现简单的异步加载:

 调用页面如下:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script type="text/javascript" src="Scripts/jquery-1.4.1.js"></script>
    <script );
    }
</script>

 

iframeD.htm:是字符串就可以了

 

iframeD.htm

 

scriptD.js:是可以运行的js代码

 

 

$("#result").html("Scripts/scriptD.js");

 

 

 

 

 

 

 

 

相关文章:

  • 2021-11-14
  • 2022-12-23
  • 2021-07-20
  • 2022-12-23
  • 2022-12-23
  • 2021-06-16
  • 2021-11-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案