sheshuangning hace 1 mes
padre
commit
3fb978ba68
Se han modificado 2 ficheros con 5 adiciones y 5 borrados
  1. BIN
      24_jz_1113_01.apk
  2. 5 5
      ppishow.html

BIN
24_jz_1112_01.apk → 24_jz_1113_01.apk


+ 5 - 5
ppishow.html

@@ -167,9 +167,9 @@
                             }
                             break;
                         case 'HM':
-                            if (typeof OpenHarmony !== 'undefined' &&
-                                OpenHarmony.jsCLoseWebView) {
-                                OpenHarmony.jsCLoseWebView();
+                            if (typeof window.OpenHarmony !== 'undefined' &&
+                                window.OpenHarmony.jsCLoseWebView) {
+                                window.OpenHarmony.jsCLoseWebView();
                                 success = true;
                                 message = '成功调用 HM 原生关闭方法';
                             } else {
@@ -216,8 +216,8 @@
                             }
                             break;
                         case 'HM':
-                            if (typeof OpenHarmony !== 'undefined' && OpenHarmony.jsCLoseWebView) {
-                                OpenHarmony.jsToTerminationActivity();
+                            if (typeof window.OpenHarmony !== 'undefined' && window.OpenHarmony.jsCLoseWebView) {
+                                window.OpenHarmony.jsToTerminationActivity();
                                 success = true;
                                 message = '成功调用 HM 跳转终止页面方法';
                             } else {