基于Ajax的动态JavaScript文件加载模型
DOI:
作者:
作者单位:

1. 西华师范大学计算机学院,四川南充,637002
2. 西华师范大学实验中心,四川南充,637002
3. 四川文理学院计算机学院,四川达州,635000

作者简介:

通讯作者:

基金项目:


Ajax Based Dynamic Loading JavaScript File Model
Author:
Affiliation:

XIONG Hai-dong1,CHEN Ya-jun2,PAN Gang3(1.Computer Institute,China West Normal university,Nanchong,Sichuan 637002,2.Experimental Center China West Normal university,3.Computer Institute Sichuan University of Arts and Science,DaZhou,Sichuan 635000)

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
    摘要:

    在基于B/S模式的系统中,浏览器端程序是以动态脚本语言JavaScript为主。浏览器的标签在不刷新的情况下,在初始化时加载用户可能用到的所有JavaScript文件。而对于浏览器端不同权限的用户、同一用户在不同时刻所需要用到的JavaScript文件是不一样的。本文提出一种动态加载javascript文件的模型,只传递浏览器端必须用到的JavaScript文件,杜绝了一些安全隐患,减少网络流量,保护了服务端的JavaScript代码。

    Abstract:

    In the B/S model websystem, the browser is running with JavaScript language. Browser loads all the JavaScript files only at the first time if the browser doesn't refresh. The JavaScript files which need to be used are not the same for the users with different permissions and the same user at different times. In this paper a dynamic loading JavaScript file model is presented, passing needed JavaScript files only, reducing network traffic, protecting the JavaSeript code.

    参考文献
    相似文献
    引证文献
引用本文

熊海东,陈亚军,潘刚.基于Ajax的动态JavaScript文件加载模型[J].西昌学院学报(自然科学版),2011,(3):52-54.

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
历史
  • 收稿日期:
  • 最后修改日期:
  • 录用日期:
  • 在线发布日期: 2018-01-25