From 9fc29bd426176d8aad6390214cc10bf86b64ac4d Mon Sep 17 00:00:00 2001 From: hdw <496960745@qq.com> Date: 星期二, 23 十月 2018 13:54:12 +0800 Subject: [PATCH] 修改确认框点击确认不隐藏的bug --- gx_tieta/WebRoot/js/base.js | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/gx_tieta/WebRoot/js/base.js b/gx_tieta/WebRoot/js/base.js index 61bbde9..8f573f9 100644 --- a/gx_tieta/WebRoot/js/base.js +++ b/gx_tieta/WebRoot/js/base.js @@ -1177,4 +1177,29 @@ // 鍒ゆ柇鏄惁涓哄璞� function isObject(s) { return (typeof s === 'object' && !isArray(s)); +} + +//浣跨敤XMLHttpRequest鐨勬柟寮忚幏鍙栨ā鏉块〉 +function getTpl(url) { + var xmlhttp; // 瀹炰緥鍖朮MLHttpRequest瀵硅薄 + if(window.XMLHttpRequest) { + xmlhttp = new XMLHttpRequest(); + }else { + xmlhttp = new ActiveXObject('Mocrosoft.XMLHTTP'); + } + + // 璁剧疆璇锋眰 + xmlhttp.open('GET', url, false); + + // 鍙戦�佽姹� + xmlhttp.send(); + + var tpl; + if(xmlhttp.readyState == 4 && xmlhttp.status == 200) { + tpl = xmlhttp.responseText; + }else { + tpl = ""; + } + + return tpl; } \ No newline at end of file -- Gitblit v1.9.1