jack 1 week ago
parent
commit
c12e5e46b2
1 changed files with 8 additions and 1 deletions
  1. 8 1
      scanner/ocr.htm

+ 8 - 1
scanner/ocr.htm

@@ -5,6 +5,12 @@
 <head>
     <title>跨浏览器调用高拍仪测试demo</title>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <style type="text/css">
+        body,
+        html {
+            overflow: hidden;
+        }
+    </style>
 </head>
 
 <!-- 引入高拍仪JS接口-->
@@ -12,7 +18,7 @@
 
 <script type="text/javascript">
 
-
+    document.domain = "cocorobo.cn"
     //时间格式化显示
     function formatDate(time) {
         var date = new Date(time);
@@ -238,6 +244,7 @@
 
 
     window.onload = function () {
+        document.domain = "cocorobo.cn"
         console.log("window.onload");
     }