Browse Source

feat: IE兼容

zhangyuhan 3 years ago
parent
commit
0801c03aba
1 changed files with 12 additions and 0 deletions
  1. 12 0
      src/web/templates/pc/previewData.html

+ 12 - 0
src/web/templates/pc/previewData.html

@@ -177,6 +177,18 @@
 	} catch (err) {
 		console.log(err)
 	}
+	function isIE(){
+		if(!!window.ActiveXObject || "ActiveXObject" in window){
+			return true;
+		}else{
+			return false;
+		}
+	}
+	$(function () {
+		if (isIE()) {
+			renderImg()
+		}
+	})
 
 	var ttf={{.T.ttf}}
 	function textFormatForMosaic (text, phone) {