宇宙最大的共享资料库,等您下载。本资料为js加载器.doc文档,由香港马会2019资科大全用户供给,以下为正文内容。
js加载器JS文件器端同浏浏浏浏浏浏浏或异加步步系脚本列表,列表中的脚本存取象的统统统统统统统统统统统统统统统统统统scriptUrl统统统“相于WebPage”目的统统URLvarSystemScriptList={scriptUrl:"JQueryJQueryjs"},{scriptUrl:"LanguageGetLanguageCultureashx"},{scriptUrlFun:function(){return"Language"MutilLanguageCultureInfoName"js"}},{scriptUrl:"PlugInJsCommonjs",asyn:true},自加系脚本文件当前加也的统统统统统统统统统统统统统统统统URL,脚本象列表,在上面已文明,统统统统统统统统统统统统统functionAutoLoadSystemScripts(relativelyUrl,scriptList){if(scriptListscriptListlength==)returnvarscriptPrefix=GetVirtualPath()functionGetVirtualPath(){varp=windowlocationhreftoLowerCase()varstr=psubstr(,pindexOf(relativelyUrl)relativelyUrllength)returnstr}functionGetScriptUrl(sObj){returnscriptPrefix(sObjscriptUrlsObjscriptUrl:sObjscriptUrlFun())}try{for(varloadIndex=,maxIndex=scriptListlengthloadIndex<maxIndexloadIndex){loadScript(scriptListloadIndexid,GetScriptUrl(scriptListloadIndex),scriptListloadIndexasyn)}}catch(ex){alert(exmessage)return}}统统统加JS文件函数functionloadScript(id,url,asyn){if(!url){thrownewError('"加的统统JS脚本路径空统统"')}varxmlhttp=统统统统统统统建多器支撑的XMLHttpRequestif(windowXMLHttpRequest){xmlhttp=newXMLHttpRequest()}elseif(windowActiveXObject){codeforIEandIExmlhttp=newActiveXObject("MicrosoftXMLHTTP")}if(xmlhttp!=){xmlhttponreadystatechange=function(){if(xmlhttpreadyState==){="loaded"if(xmlhttpstatus==){=OKvarscriptElem=documentcreateElement('script')documentgetElementsByTagName('head')appendChild(scriptElem)scriptElemtext=xmlhttpresponseText}else{thrownewError("下统Js脚本出")统}}}xmlhttpopen("GET",url,asynasyn:false)xmlhttpsend()}else{thrownewError("您的器不支撑统统统统统统XMLHttpRequest")}}AutoLoadSystemScripts("webpage",SystemScriptList)用法在SystemScriptList数量中添加象统统统统统统统统{scriptUrl:"JQueryJQueryjs"},象有以统统统统统下属性,scriptUrl:要下的统统js文件的路径,最好是相于你自己统统统统统Web统统根目scriptUrlFun:当地址中出了其他统统统统js中定量,可以使用函数统统统统统统统统统统统统统URL的返回asyn:是否行异统统统下步统统统统统功能的用是在AutoLoadSystemScripts("webpage",SystemScriptList)统统统统统句中,此中第一个参数是你SystemScriptList中scriptUrl的相路径尾加上统统统统统统统“”,功能,统统统可以在任一的面中引用,了跨面加统统统统统统统统统统统统统统统JS的功能,配置好后,不具备做一概其他的修改,干脆引用即可。培训费用预算治理.ppt.ppt
商品分销有几种形式?高频、低频产品之间又有何差异?.doc
未成年人在“幼儿园”学校”受到人身伤害如何承担责任.docx
技术保密合同必要性是什么
关于医疗纠纷案件法律适用若干问题的调研申报.doc
免费个人简历模板大全套.doc
动工合同亦称“工程合同”或“包工合同”。指发包方 (建设单元) 和包揽方 (动工单元) 为完成商定的建筑安装工程动工任务,明确相互之间权利、义务关系的书面协议。对于我们日常接触比较多,且需求量比较大的动工合同,这些模板粗略能够帮到你。