Index: ssts-web/src/main/webapp/disinfectsystem/print/LodopFuncs.js =================================================================== diff -u -r28471 -r30878 --- ssts-web/src/main/webapp/disinfectsystem/print/LodopFuncs.js (.../LodopFuncs.js) (revision 28471) +++ ssts-web/src/main/webapp/disinfectsystem/print/LodopFuncs.js (.../LodopFuncs.js) (revision 30878) @@ -47,15 +47,17 @@ if (needCLodop()) { var src1 = "http://localhost:8000/CLodopfuncs.js?priority=1"; var src2 = "http://localhost:18000/CLodopfuncs.js?priority=0"; - - var head = document.head || document.getElementsByTagName("head")[0] || document.documentElement; - var oscript = document.createElement("script"); - oscript.src = src1; - head.insertBefore(oscript, head.firstChild); - oscript = document.createElement("script"); - oscript.src = src2; - head.insertBefore(oscript, head.firstChild); - CLodopIsLocal = !!((src1 + src2).match(/\/\/localho|\/\/127.0.0./i)); + + setTimeout(function(){ + var head = document.head || document.getElementsByTagName("head")[0] || document.documentElement; + var oscript = document.createElement("script"); + oscript.src = src1; + head.insertBefore(oscript, head.firstChild); + oscript = document.createElement("script"); + oscript.src = src2; + head.insertBefore(oscript, head.firstChild); + CLodopIsLocal = !!((src1 + src2).match(/\/\/localho|\/\/127.0.0./i)); + }, 2000); } //====获取LODOP对象的主过程:====