|
|
AIWROKÈí¼þstart.js¼òµ¥H5Ö±½Óµ÷ÓÃ.
- printl('//🍎½»Á÷QQȺ711841924');
- // ´´½¨Ò»¸ö»ÆÉ«Ö÷Ìâ·ç¸ñµÄ WebView ʾÀý
- function createYellowThemedWebViewExample() {
- // ´´½¨ WebView ʵÀý
- var web = new WebView();
-
- // ÏÔʾ½çÃæ
- web.show();
-
- // ¼ÓÔØ»ÆÉ«Ö÷Ìâ·ç¸ñµÄ HTML ÄÚÈÝ
- web.loadHtml(`
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>×ÔÊÊÓ¦TabView</title>
- <style>
- * {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- }
-
- body {
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
- background-color: #f0f0f5;
- color: #333;
- }
-
- .container {
- max-width: 600px;
- margin: 0 auto;
- background-color: #fff;
- min-height: 100vh;
- }
-
- /* TabÑùʽ */
- .tab-header {
- display: flex;
- background-color: #ff3b30;
- position: sticky;
- top: 0;
- z-index: 100;
- padding-top: 20px;
- }
-
- .tab-item {
- flex: 1;
- text-align: center;
- padding: 12px 0;
- color: #fff;
- font-size: 16px;
- cursor: pointer;
- position: relative;
- transition: all 0.3s ease;
- }
-
- .tab-item.active {
- font-weight: bold;
- }
-
- .tab-item.active::after {
- content: '';
- position: absolute;
- bottom: 0;
- left: 25%;
- width: 50%;
- height: 3px;
- background-color: #fff;
- border-radius: 3px;
- }
-
- /* ÄÚÈÝÇøÓòÑùʽ */
- .tab-content {
- display: none;
- padding: 16px;
- }
-
- .tab-content.active {
- display: block;
- }
-
- /* ±êÌâÑùʽ */
- .title-header {
- text-align: center;
- margin-bottom: 16px;
- }
-
- .title-label {
- font-size: 22px;
- color: #4682b4;
- font-weight: bold;
- }
-
- /* ·Ö¸ôÏß */
- .divider {
- height: 1px;
- background-color: #e8e8e8;
- margin: 16px 0;
- }
-
- /* °´Å¥ÈÝÆ÷ */
- .button-container { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 30px; width: 100%; }
-
- .button { padding: 20px 48px; border: none; border-radius: 12px; color: white; font-size: 24px; cursor: pointer; width: 100%; max-width: 300px; height: 80px; font-weight: bold; }
-
- .button.start {
- background-color: #4682b4;
- }
-
- .button.back {
- background-color: #ff6347;
- }
-
- /* ÄÚÈݱêÌâ */
- .content-title {
- font-size: 18px;
- color: #800080;
- margin-bottom: 12px;
- font-weight: bold;
- }
-
- /* ÈÎÎñ·ÖÀà */
- .category-label {
- font-size: 18px;
- color: #800080;
- margin-top: 16px;
- margin-bottom: 8px;
- font-weight: bold;
- }
-
- /* ÈÎÎñÏî */
- .task-container {
- background-color: #fff;
- padding: 12px 0;
- display: flex;
- align-items: center;
- border-bottom: 1px solid #f0f0f0;
- }
-
- .task-checkbox {
- display: flex;
- align-items: center;
- width: 200px;
- }
-
- .task-checkbox input[type="checkbox"] {
- width: 20px;
- height: 20px;
- margin-right: 10px;
- }
-
- .task-checkbox label {
- font-size: 16px;
- cursor: pointer;
- }
-
- /* ÉèÖÃÏî */
- .settings-container {
- background-color: #fff;
- border-radius: 8px;
- overflow: hidden;
- }
- </style>
- </head>
- <body>
- <div class="container">
- <!-- TabÍ·²¿ -->
- <div class="tab-header">
- <div class="tab-item active" data-tab="0">Èí¼þ</div>
- <div class="tab-item" data-tab="1">ͨÓÃ</div>
- <div class="tab-item" data-tab="2">ÈÕ³£</div>
- <div class="tab-item" data-tab="3">¸¨Öú</div>
- <div class="tab-item" data-tab="4">ÉèÖÃ</div>
- </div>
-
- <!-- Èí¼þTabÄÚÈÝ -->
- <div class="tab-content active" id="tab-0">
- <div class="title-header">
- <div class="title-label">Èí¼þ¹¦ÄÜ</div>
- </div>
-
- <div class="divider"></div>
-
- <div class="button-container">
- <button class="button start">¿ªÊ¼</button>
- <button class="button back">·µ»Ø</button>
- </div>
-
- <div class="content-title">Èí¼þÒ³ÃæÄÚÈÝ</div>
-
- <div class="category-label">ϲ·¬ÈÎÎñ</div>
- <div class="task-container">
- <div class="task-checkbox">
- <input type="checkbox" id="task-0-0">
- <label for="task-0-0">¿´¶Ì¾ç</label>
- </div>
- </div>
- <div class="task-container">
- <div class="task-checkbox">
- <input type="checkbox" id="task-0-1">
- <label for="task-0-1">±¦Ïä</label>
- </div>
- </div>
- <div class="task-container">
- <div class="task-checkbox">
- <input type="checkbox" id="task-0-2">
- <label for="task-0-2">¿´ÊÓÆµ</label>
- </div>
- </div>
-
- <div class="divider"></div>
-
- <div class="category-label">¶¶¼«ÈÎÎñ</div>
- <div class="task-container">
- <div class="task-checkbox">
- <input type="checkbox" id="task-1-0">
- <label for="task-1-0">±¦Ïä</label>
- </div>
- </div>
- <div class="task-container">
- <div class="task-checkbox">
- <input type="checkbox" id="task-1-1">
- <label for="task-1-1">AD¹ã</label>
- </div>
- </div>
- <div class="task-container">
- <div class="task-checkbox">
- <input type="checkbox" id="task-1-2">
- <label for="task-1-2">СÖí</label>
- </div>
- </div>
-
- <div class="divider"></div>
-
- <div class="category-label">ºì¹ûÈÎÎñ</div>
- <div class="task-container">
- <div class="task-checkbox">
- <input type="checkbox" id="task-2-0">
- <label for="task-2-0">±¦Ïä</label>
- </div>
- </div>
- <div class="task-container">
- <div class="task-checkbox">
- <input type="checkbox" id="task-2-1">
- <label for="task-2-1">¶Ì¾ç</label>
- </div>
- </div>
- <div class="task-container">
- <div class="task-checkbox">
- <input type="checkbox" id="task-2-2">
- <label for="task-2-2">º£Á¿</label>
- </div>
- </div>
- </div>
-
- <!-- ͨÓÃTabÄÚÈÝ -->
- <div class="tab-content" id="tab-1">
- <div class="title-header">
- <div class="title-label">ͨÓù¦ÄÜ</div>
- </div>
-
- <div class="divider"></div>
-
- <div class="button-container">
- <button class="button start">¿ªÊ¼</button>
- <button class="button back">·µ»Ø</button>
- </div>
-
- <div class="content-title">ͨÓÃÒ³ÃæÄÚÈÝ</div>
-
- <div class="category-label">ͨÓÃÈÎÎñ</div>
- <div class="task-container">
- <div class="task-checkbox">
- <input type="checkbox" id="task-3-0">
- <label for="task-3-0">ÿÈÕÇ©µ½</label>
- </div>
- </div>
- <div class="task-container">
- <div class="task-checkbox">
- <input type="checkbox" id="task-3-1">
- <label for="task-3-1">ÑûÇëºÃÓÑ</label>
- </div>
- </div>
- <div class="task-container">
- <div class="task-checkbox">
- <input type="checkbox" id="task-3-2">
- <label for="task-3-2">·ÖÏíÄÚÈÝ</label>
- </div>
- </div>
- </div>
-
- <!-- ÈÕ³£TabÄÚÈÝ -->
- <div class="tab-content" id="tab-2">
- <div class="title-header">
- <div class="title-label">ÈÕ³£¹¦ÄÜ</div>
- </div>
-
- <div class="divider"></div>
-
- <div class="button-container">
- <button class="button start">¿ªÊ¼</button>
- <button class="button back">·µ»Ø</button>
- </div>
-
- <div class="content-title">ÈÕ³£Ò³ÃæÄÚÈÝ</div>
-
- <div class="category-label">ÈÕ³£ÈÎÎñ</div>
- <div class="task-container">
- <div class="task-checkbox">
- <input type="checkbox" id="task-4-0">
- <label for="task-4-0">ä¯ÀÀ×ÊѶ</label>
- </div>
- </div>
- <div class="task-container">
- <div class="task-checkbox">
- <input type="checkbox" id="task-4-1">
- <label for="task-4-1">¹Û¿´ÊÓÆµ</label>
- </div>
- </div>
- <div class="task-container">
- <div class="task-checkbox">
- <input type="checkbox" id="task-4-2">
- <label for="task-4-2">ÆÀÂÛ»¥¶¯</label>
- </div>
- </div>
- </div>
-
- <!-- ¸¨ÖúTabÄÚÈÝ -->
- <div class="tab-content" id="tab-3">
- <div class="title-header">
- <div class="title-label">¸¨Öú¹¦ÄÜ</div>
- </div>
-
- <div class="divider"></div>
-
- <div class="button-container">
- <button class="button start">¿ªÊ¼</button>
- <button class="button back">·µ»Ø</button>
- </div>
-
- <div class="content-title">¸¨ÖúÒ³ÃæÄÚÈÝ</div>
-
- <div class="category-label">¸¨Öú¹¦ÄÜ</div>
- <div class="task-container">
- <div class="task-checkbox">
- <input type="checkbox" id="task-5-0">
- <label for="task-5-0">ÉèÖÃ</label>
- </div>
- </div>
- <div class="task-container">
- <div class="task-checkbox">
- <input type="checkbox" id="task-5-1">
- <label for="task-5-1">°ïÖú</label>
- </div>
- </div>
- <div class="task-container">
- <div class="task-checkbox">
- <input type="checkbox" id="task-5-2">
- <label for="task-5-2">¹ØÓÚÎÒÃÇ</label>
- </div>
- </div>
- </div>
-
- <!-- ÉèÖÃTabÄÚÈÝ -->
- <div class="tab-content" id="tab-4">
- <div class="title-header">
- <div class="title-label">ÉèÖù¦ÄÜ</div>
- </div>
-
- <div class="divider"></div>
-
- <div class="button-container">
- <button class="button start">¿ªÊ¼</button>
- <button class="button back">·µ»Ø</button>
- </div>
-
- <div class="content-title">ÉèÖÃÑ¡Ïî</div>
-
- <div class="settings-container">
- <div class="task-container">
- <div class="task-checkbox">
- <input type="checkbox" id="settings-0">
- <label for="settings-0">ͨÓÃÉèÖÃ</label>
- </div>
- </div>
- <div class="task-container">
- <div class="task-checkbox">
- <input type="checkbox" id="settings-1">
- <label for="settings-1">¸öÐÔ»¯</label>
- </div>
- </div>
- <div class="task-container">
- <div class="task-checkbox">
- <input type="checkbox" id="settings-2">
- <label for="settings-2">¹ØÓÚÎÒÃÇ</label>
- </div>
- </div>
- </div>
- </div>
- </div>
-
- <script>
- // Ä£ÄâÔÉú»·¾³µÄ½»»¥·½·¨
- // ÔÚʵ¼Ê»·¾³ÖУ¬ÕâЩ·½·¨ÓÉÔÉúÓ¦ÓÃÌṩ
- if (typeof setConfig === 'undefined') {
- function setConfig(key, value) {
- console.log('ÉèÖÃÅäÖÃ:', key, '=', value);
- try {
- // ³¢ÊÔʹÓÃlocalStorage
- localStorage.setItem(key, value);
- console.log('localStorageÉèÖóɹ¦:', key, '=', value);
- // ÓÅ»¯ÌáʾÄÚÈÝ
- if (key && key.startsWith('last_')) {
- showToast('²Ù×÷ÒѼǼ');
- } else {
- showToast('ÅäÖÃÒÑÉèÖÃ');
- }
- } catch (e) {
- console.warn('localStorage²»¿ÉÓã¬Ê¹ÓÃÄÚ´æ´æ´¢Ìæ´ú:', e.message);
- // ʹÓÃÄÚ´æ¶ÔÏó´æ´¢×÷Ϊ½µ¼¶·½°¸
- if (!window._memoryStorage) {
- window._memoryStorage = {};
- }
- window._memoryStorage[key] = value;
- // Ö»ÏÔʾ²Ù×÷Ãû³Æ£¬±ÜÃâÏÔʾÍêÕûʱ¼ä´Á
- if (key && key.startsWith('last_')) {
- showToast('²Ù×÷ÒѼǼ');
- } else {
- showToast('ÅäÖÃÒѼǼ');
- }
- }
- }
- }
-
- if (typeof getConfig === 'undefined') {
- function getConfig(key, callback) {
- var value = 'δÉèÖÃ';
- try {
- // ÓÅÏȳ¢ÊÔlocalStorage
- value = localStorage.getItem(key) || 'δÉèÖÃ';
- console.log('´ÓlocalStorage»ñÈ¡ÅäÖÃ:', { key: key, value: value });
- } catch (e) {
- // ½µ¼¶µ½ÄÚ´æ´æ´¢
- console.warn('localStorage²»¿ÉÓ㬳¢ÊÔ´ÓÄÚ´æ»ñÈ¡:', e.message);
- if (window._memoryStorage && window._memoryStorage[key] !== undefined) {
- value = window._memoryStorage[key];
- }
- }
-
- if (typeof callback === 'function') {
- callback(value);
- }
- }
- }
- if (typeof toast === 'undefined') {
- function toast(message) {
- console.log('ÏÔʾÌáʾ:', message);
- showToast(message);
- }
- }
-
- if (typeof runJS === 'undefined') {
- function runJS(func) {
- console.log('ÔËÐÐJS´úÂë');
- try {
- func();
- showToast('JS´úÂëÖ´Ðгɹ¦');
- } catch (e) {
- showToast('JS´úÂëÖ´ÐÐʧ°Ü: ' + e.message);
- }
- }
- }
-
- if (typeof printl === 'undefined') {
- function printl(message) {
- console.log('ÔÉúÈÕÖ¾:', message);
- }
- }
-
- if (typeof dismiss === 'undefined') {
- function dismiss() {
- console.log('¹Ø±Õ½çÃæ');
- showToast('¹Ø±Õ½çÃæ²Ù×÷');
- }
- }
-
- if (typeof runFile === 'undefined') {
- function runFile(filePath) {
- console.log('ÔËÐнű¾Îļþ:', filePath);
- showToast('ÔËÐнű¾Îļþ: ' + filePath);
- }
- }
-
- // ±£´æÓû§²Ù×÷µ½ÅäÖÃ
- function saveUserAction(action, value) {
- var timestamp = new Date().toISOString();
- console.log('±£´æÓû§²Ù×÷:', action, 'ʱ¼ä´Á:', timestamp);
- setConfig('last_' + action, timestamp);
- if (value) {
- console.log('±£´æ²Ù×÷Öµ:', action, '=', value);
- // ÓÅ»¯ÌáʾÄÚÈÝ£¬Ö»ÏÔʾ²Ù×÷ÃûºÍ¼ò¶ÌÐÅÏ¢
- setConfig(action, value);
- }
- }
-
- // ×Ô¶¨ÒåToastÌáʾ - ÓÅ»¯°æ±¾
- function showToast(message) {
- // ´´½¨toastÔªËØ
- var toast = document.getElementById('custom-toast');
- if (!toast) {
- toast = document.createElement('div');
- toast.id = 'custom-toast';
- toast.style.cssText =
- 'position: fixed;' +
- 'top: 50%;' +
- 'left: 50%;' +
- 'transform: translate(-50%, -50%);' +
- 'background: rgba(0, 0, 0, 0.7);' +
- 'color: white;' +
- 'padding: 12px 24px;' +
- 'border-radius: 8px;' +
- 'font-size: 14px;' +
- 'z-index: 9999;' +
- 'opacity: 0;' +
- 'transition: opacity 0.3s ease, transform 0.3s ease;' +
- 'transform: translate(-50%, -50%) scale(0.9);';
- document.body.appendChild(toast);
- }
-
- // Çå³ý֮ǰµÄ¶¨Ê±Æ÷
- if (toast.timer) {
- clearTimeout(toast.timer);
- }
-
- // ÉèÖÃÏûÏ¢²¢ÏÔʾ£¨´ø¶¯»Ð§¹û£©
- toast.textContent = message;
- toast.style.opacity = '1';
- toast.style.transform = 'translate(-50%, -50%) scale(1)';
-
- // 2ÃëºóÒþ²Ø
- toast.timer = setTimeout(function() {
- toast.style.opacity = '0';
- toast.style.transform = 'translate(-50%, -50%) scale(0.9)';
- }, 2000);
- }
-
- // Ìí¼Ó°´Å¥µã»÷·´À¡
- function addButtonFeedback() {
- var buttons = document.querySelectorAll('.button');
- for (var i = 0; i < buttons.length; i++) {
- (function(button) {
- button.addEventListener('mousedown', function() {
- this.style.transform = 'scale(0.95)';
- });
-
- button.addEventListener('mouseup', function() {
- this.style.transform = 'scale(1)';
- });
-
- button.addEventListener('mouseleave', function() {
- this.style.transform = 'scale(1)';
- });
- })(buttons[i]);
- }
- }
-
- // ³õʼ»¯TabÇл»¹¦ÄÜ
- document.addEventListener('DOMContentLoaded', function() {
- // »ñÈ¡ËùÓÐTabÏîºÍÄÚÈÝ
- var tabItems = document.querySelectorAll('.tab-item');
- var tabContents = document.querySelectorAll('.tab-content');
- var startButtons = document.querySelectorAll('.button.start');
- var backButtons = document.querySelectorAll('.button.back');
-
- // µ÷Óð´Å¥µã»÷·´À¡¹¦ÄÜ
- addButtonFeedback();
- // ³¢ÊÔ»Ö¸´ÉÏ´ÎÑ¡ÔñµÄTab
- getConfig('last_tab', function(lastTabIndex) {
- if (lastTabIndex !== 'δÉèÖÃ' && !isNaN(lastTabIndex)) {
- var tabIndex = parseInt(lastTabIndex);
- if (tabIndex >= 0 && tabIndex < tabItems.length) {
- // ÒÆ³ýËùÓÐactiveÀà
- for (var i = 0; i < tabItems.length; i++) {
- tabItems[i].classList.remove('active');
- }
- for (var j = 0; j < tabContents.length; j++) {
- tabContents[j].classList.remove('active');
- }
-
- // Ìí¼Óµ±Ç°activeÀà
- tabItems[tabIndex].classList.add('active');
- document.getElementById('tab-' + tabIndex).classList.add('active');
- }
- }
- });
-
- // ³¢ÊÔ»Ö¸´ÈÎÎñÑ¡ÖÐ״̬
- var checkboxes = document.querySelectorAll('input[type="checkbox"]');
- for (var k = 0; k < checkboxes.length; k++) {
- (function(checkbox) {
- var taskId = checkbox.id;
- getConfig('task_' + taskId, function(value) {
- if (value === 'true') {
- checkbox.checked = true;
- }
- });
- })(checkboxes[k]);
- }
-
- // TabÇл»¹¦ÄÜ
- for (var l = 0; l < tabItems.length; l++) {
- (function(item) {
- item.addEventListener('click', function() {
- var tabIndex = this.getAttribute('data-tab');
- var tabName = this.textContent;
-
- // ÒÆ³ýËùÓÐactiveÀà
- for (var m = 0; m < tabItems.length; m++) {
- tabItems[m].classList.remove('active');
- }
- for (var n = 0; n < tabContents.length; n++) {
- tabContents[n].classList.remove('active');
- }
-
- // Ìí¼Óµ±Ç°activeÀà
- this.classList.add('active');
- document.getElementById('tab-' + tabIndex).classList.add('active');
-
- // ±£´æµ±Ç°TabÑ¡Ôñ
- saveUserAction('tab', tabIndex);
-
- // ÏÔʾÌáʾ
- toast('Çл»µ½' + tabName + '±êÇ©');
-
- // Ö´ÐÐÔÉúÈÕÖ¾Êä³ö
- runJS(function() {
- printl('Óû§Çл»µ½±êÇ©: ' + tabName);
- });
- });
- })(tabItems[l]);
- }
-
- // ¿ªÊ¼°´Å¥µã»÷ʼþ
- for (var o = 0; o < startButtons.length; o++) {
- (function(button) {
- button.addEventListener('click', function() {
- // »ñÈ¡µ±Ç°¼¤»îµÄ±êÇ©
- var activeTab = document.querySelector('.tab-item.active');
- var tabName = activeTab ? activeTab.textContent : 'δ֪';
-
- // ±£´æ²Ù×÷
- saveUserAction('start_button', tabName);
-
- // ÏÔʾÌáʾ
- toast('¿ªÊ¼' + tabName + 'ÈÎÎñ');
-
- // Ö´ÐÐÔÉú²Ù×÷
- runJS(function() {
- printl('Óû§µã»÷ÁË¿ªÊ¼°´Å¥£¬±êÇ©£º' + tabName);
- toast('¿ªÊ¼Ö´ÐÐ' + tabName + 'Ïà¹ØÈÎÎñ');
- });
- });
- })(startButtons[o]);
- }
-
- // ·µ»Ø°´Å¥µã»÷ʼþ
- for (var p = 0; p < backButtons.length; p++) {
- (function(button) {
- button.addEventListener('click', function() {
- // ±£´æ²Ù×÷
- saveUserAction('back_button');
-
- // ¹Ø±Õ½çÃæ
- if (confirm('È·¶¨Òª·µ»ØÂð£¿')) {
- dismiss();
- }
- });
- })(backButtons[p]);
- }
-
- // ¸´Ñ¡¿òµã»÷ʼþ
- for (var q = 0; q < checkboxes.length; q++) {
- (function(checkbox) {
- checkbox.addEventListener('change', function() {
- var label = this.nextElementSibling.textContent;
- var taskId = this.id;
- var status = this.checked ? 'Íê³É' : 'È¡ÏûÍê³É';
-
- // ±£´æÈÎÎñ״̬
- setConfig('task_' + taskId, this.checked.toString());
-
- // ÏÔʾÌáʾ
- toast(label + ' ÒÑ' + status);
-
- // Ö´ÐÐÔÉúÈÕÖ¾Êä³ö
- runJS(function() {
- printl(label + ' ÈÎÎñ±»±ê¼ÇΪ' + status);
- });
- });
- })(checkboxes[q]);
- }
-
- // Ò³Ãæ¼ÓÔØÍê³ÉÌáʾ
- toast('TabViewÒÑÆô¶¯');
-
- // ¼ÇÂ¼Ò³Ãæ¼ÓÔØÊ±¼äºÍÉ豸ÐÅÏ¢
- setConfig('page_load_time', new Date().toISOString());
- setConfig('app_version', '1.0.0');
-
- // ÑÝʾÅäÖÃÉèÖÃ
- setTimeout(function() {
- setConfig('demo_setting', 'initialized');
- }, 1000);
- });
- </script>
- </body>
- </html>
- `);
-
- return web;
- }
- // ÑÝʾ WebView µÄ¸÷ÖÖ·½·¨
- function demonstrateWebViewMethods() {
- printl('¿ªÊ¼ÑÝʾ WebView ¿Ø¼þµÄ¸÷ÖÖ·½·¨');
-
- // 1. ´´½¨²¢ÏÔʾ WebView
- var webView = createYellowThemedWebViewExample();
- printl('1. WebView ÒÑ´´½¨²¢ÏÔʾ»ÆÉ«Ö÷Ìâ½çÃæ');
-
- // 2. ÑÝʾ loadUrl ·½·¨£¨×¢ÊÍÐÎʽ£¬±ÜÃâʵ¼ÊÌø×ª£©
- // webView.loadUrl('https://www.baidu.com');
- printl('2. loadUrl ·½·¨¿ÉÓÃÓÚ¼ÓÔØÍøÒ³ URL');
-
- // 3. ÑÝʾ loadFile ·½·¨£¨×¢ÊÍÐÎʽ£©
- // webView.loadFile('/sdcard/index.html');
- printl('3. loadFile ·½·¨¿ÉÓÃÓÚ¼ÓÔØ±¾µØÎļþ');
-
- // 4. ÑÝʾ dismiss ·½·¨£¨×¢ÊÍÐÎʽ£¬±ÜÃâʵ¼Ê¹Ø±Õ£©
- // webView.dismiss();
- printl('4. dismiss ·½·¨¿ÉÓÃÓڹرսçÃæ');
-
- printl('WebView ¿Ø¼þ·½·¨ÑÝʾÍê³É');
- }
- // ÔËÐÐʾÀý
- demonstrateWebViewMethods();
¸´ÖÆ´úÂë
|
|