免费试用

中文化、本土化、云端化的在线跨平台软件开发工具,支持APP、电脑端、小程序、IOS免签等等

html5兼容安卓和ios

HTML5是一种用于构建网站和应用程序的标准。它可以在多个平台上运行,包括Windows、Mac、Linux、iOS和Android。在本文中,我们将讨论HTML5如何在Android和iOS上兼容。

1. 安卓

安卓是一种开源的移动操作系统,由Google开发。它支持HTML5标准,但不同的安卓版本对HTML5的支持程度有所不同。较新的安卓版本支持更多的HTML5功能,而较旧的版本则可能会出现一些兼容性问题。

为了确保您的HTML5应用在所有安卓设备上都能正常运行,您需要遵循以下几个步骤:

1.1 使用适当的doctype声明

在HTML5中,doctype声明应该是。这将确保您的HTML5应用在所有安卓设备上都能正常运行。如果您使用的是较旧的doctype声明,可能会出现一些兼容性问题。

1.2 使用适当的meta标签

在HTML5中,meta标签应该包含以下内容:

```

```

这将确保您的HTML5应用能够在各种不同的屏幕大小上正常显示。如果您没有使用正确的meta标签,可能会出现布局问题。

1.3 避免使用过时的标记和属性

在HTML5中,一些标记和属性已经被弃用。如果您使用这些标记和属性,可能会出现兼容性问题。以下是一些已经被弃用的标记和属性:

```

、、、、<isindex>、<menu></p><p>```</p><p>1.4 使用现代化的技术</p><p>在HTML5中,有很多新的技术和API可以使用。这些技术和API可以提高应用程序的性能和用户体验。以下是一些常用的HTML5技术和API:</p><p>```</p><p>Canvas、Web Workers、Web Sockets、Geolocation、Local Storage、Session Storage、Web Storage、Web Notifications、Web Audio、WebRTC、SVG</p><p>```</p><p>2. iOS</p><p>iOS是一种移动操作系统,由苹果公司开发。它也支持HTML5标准,但与安卓不同的是,iOS对HTML5的支持程度非常高。几乎所有的HTML5功能都可以在iOS上正常运行。</p><p>以下是一些在iOS上使用HTML5时需要注意的事项:</p><p>2.1 使用适当的doctype声明和meta标签</p><p>与安卓相同,您需要在HTML5中使用适当的doctype声明和meta标签。这将确保您的应用程序能够在各种不同的iOS设备上正常运行。</p><p>2.2 避免使用Flash</p><p>iOS不支持Flash,因此在您的应用程序中使用Flash可能会导致兼容性问题。相反,您应该使用HTML5技术来实现相同的功能。</p><p>2.3 使用iOS特有的功能</p><p>iOS有一些特有的功能,例如Safari浏览器中的Web App模式。使用这些功能可以提高应用程序的性能和用户体验。</p><p>2.4 使用现代化的技术</p><p>与安卓相同,您应该使用现代化的HTML5技术和API来提高应用程序的性能和用户体验。</p><p>总结</p><p>HTML5是一种跨平台的标准,可以在多个操作系统和设备上运行。为了确保您的HTML5应用程序在所有设备上都能正常运行,您需要遵循一些兼容性指南。在安卓上,您需要使用适当的doctype声明和meta标签,避免使用过时的标记和属性,并使用现代化的技术。在iOS上,您需要使用适当的doctype声明和meta标签,避免使用Flash,并使用iOS特有的功能和现代化的技术。</p></div> <hr style="margin: 20px 0;height: 0;border: none; border-bottom: 1px dashed #ddd;"/> <div class="tag-banner"><a href="https://ruanzhu.yimenapp.com/"><img src="//cdn.myapp.ltd/ag/3/xinruanzhu.gif" style="vertical-align: top;display: inline-block;width: auto;max-width:100%;"></a></div> <div style="font-size:130%;padding-top:20px;">相关知识:</div> <div class=aitem> <img src="//i.cdn.yimenapp.com/2023-04/03/11/09458250694.jpg"/> <div class=content> <a class=title href="info@-an-zhuo-apk-li-xian-da-bao-6070.html">安卓apk离线打包</a> <div class=summary>安卓apk离线打包是指将安卓应用程序打包成一个离线安装包,用户可以在没有网络的情况下安装和使用应用程序。这种方式适用于一些没有网络环境的场景,比如展会、会议、演出等等。下面将介绍安卓apk离线打包的原理和详细步骤。一、原理安卓应用程序是以apk格式打包的,</div> <div class=date>2023-04-06</div> </div> </div> <div class=aitem> <img src="//i.cdn.yimenapp.com/2023-04/03/11/09458250694.jpg"/> <div class=content> <a class=title href="info@-wang-zhan-da-bao-5251.html">网站打包</a> <div class=summary>网站打包是指将一个完整的网站及其相关文件打包成一个压缩文件,以便于传输、备份和存储。网站打包可以包括网站的源代码、数据库、图片、视频、音频等多种文件类型。本文将详细介绍网站打包的原理和方法。一、网站打包的原理网站打包的原理是将网站的所有文件和目录压缩成一个</div> <div class=date>2023-04-06</div> </div> </div> <div class=aitem> <img src="//i.cdn.yimenapp.com/2023-04/03/11/09458250694.jpg"/> <div class=content> <a class=title href="info@-an-zhuo-app-jia-ke-4796.html">安卓app加壳</a> <div class=summary>安卓app加壳是一种常见的应用程序保护技术,可以保护应用程序的代码和数据不被非法访问,从而提高应用程序的安全性。本文将详细介绍安卓app加壳的原理和实现方式。一、加壳的原理加壳是指将原始的应用程序代码和数据进行加密或混淆处理,并嵌入一个外壳程序中,使得外部</div> <div class=date>2023-04-06</div> </div> </div> <div class=aitem> <img src="//i.cdn.yimenapp.com/2023-04/03/11/05982576251.jpg"/> <div class=content> <a class=title href="info@-iosh5-da-bao-4656.html">iosh5打包</a> <div class=summary>IOS H5打包是将Web应用程序打包为IOS应用程序的过程。在IOS H5打包过程中,Web应用程序会被打包为一个Native应用程序,这样用户就可以在IOS设备上访问该应用程序,而不需要使用浏览器。IOS H5打包的原理是将Web应用程序打包为一个IO</div> <div class=date>2023-04-06</div> </div> </div> <div class=aitem> <img src="//i.cdn.yimenapp.com/2023-04/03/11/09458250694.jpg"/> <div class=content> <a class=title href="info@-iosh5-da-bao-app-4616.html">iosh5打包app</a> <div class=summary>IOSH5打包APP,是将H5页面打包成一个iOS应用程序的过程。在这个过程中,需要使用一些工具和技术来将H5页面转换为iOS应用程序。以下是关于IOSH5打包APP的原理和详细介绍。一、原理IOSH5打包APP的原理是将H5页面转换为本地iOS应用程序。</div> <div class=date>2023-04-06</div> </div> </div> <div class=aitem> <img src="//i.cdn.yimenapp.com/2023-04/03/11/05982576251.jpg"/> <div class=content> <a class=title href="info@-an-zhuo-shou-ji-ruan-jian-da-bao-apk-4221.html">安卓手机软件打包apk</a> <div class=summary>APK是Android应用程序的安装包文件,它包含了应用程序的所有资源文件、代码文件和配置文件等。如果你是一名Android开发者,你需要将你的应用程序打包成APK文件才能发布到Google Play或其他应用商店中。下面将详细介绍如何打包APK文件。一、</div> <div class=date>2023-04-06</div> </div> </div> <div class=aitem> <img src="//i.cdn.yimenapp.com/2023-04/03/11/09458250694.jpg"/> <div class=content> <a class=title href="info@-an-zhuo-unapp-da-bao-4207.html">安卓unapp打包</a> <div class=summary>Unapp是一款可视化的安卓APP打包工具,可以帮助开发者快速打包安卓应用程序。下面我们来详细介绍一下Unapp的打包原理。Unapp的打包原理Unapp的打包原理主要是将开发者提供的源代码进行编译、打包,生成最终的安卓应用程序。具体步骤如下:1. 解析源</div> <div class=date>2023-04-06</div> </div> </div> <div class=aitem> <img src="//i.cdn.yimenapp.com/2023-04/03/11/09458250694.jpg"/> <div class=content> <a class=title href="info@-cheng-xu-da-bao-3595.html">程序打包</a> <div class=summary>程序打包,又称软件打包,是将程序代码、资源文件、依赖库等相关文件集成在一起,形成一个可执行的文件或安装包的过程。打包后的程序可以方便地在其他计算机上运行,无需再进行复杂的配置和安装操作。程序打包技术在软件开发、分发、安装等方面都有着广泛的应用。一、打包原理</div> <div class=date>2023-04-06</div> </div> </div> <div class=aitem> <img src="//i.cdn.yimenapp.com/2023-04/03/11/09458250694.jpg"/> <div class=content> <a class=title href="info@-shou-ji-ying-yong-da-bao-cheng-apk-3499.html">手机应用打包成apk</a> <div class=summary>APK(Android Package Kit)是Android操作系统中的一种应用程序包文件格式,类似于Windows中的.exe文件。它是一种压缩文件,包含Android应用程序的所有代码、资源文件和清单文件。在Android设备上安装应用程序时,系统</div> <div class=date>2023-04-06</div> </div> </div> <div class=aitem> <img src="//i.cdn.yimenapp.com/2023-04/03/11/09458250694.jpg"/> <div class=content> <a class=title href="info@-vue-da-bao-app-gong-ju-3355.html">vue打包app工具</a> <div class=summary>Vue是一款流行的JavaScript框架,用于构建交互式Web应用程序。通过使用Vue,可以更容易地创建可重用组件和管理应用程序状态。Vue框架的优点之一是它可以用于构建跨平台的应用程序,包括Web应用程序、移动应用程序和桌面应用程序。在本文中,我们将介</div> <div class=date>2023-04-06</div> </div> </div> <div class=aitem> <img src="//i.cdn.yimenapp.com/2023-04/03/11/09458250694.jpg"/> <div class=content> <a class=title href="info@-ying-yong-app-shang-jia-da-bao-guan-li-ji-tong-3248.html">应用app上架打包管理系统</a> <div class=summary>应用app上架打包管理系统是一种能够帮助开发者管理应用程序打包和发布的系统。这种系统可以自动化处理应用程序的构建、测试、打包和发布等过程,从而大大简化了应用程序开发者的工作流程。应用app上架打包管理系统的原理是基于持续集成和持续交付的理念,通过不断地构建</div> <div class=date>2023-04-06</div> </div> </div> <div class=aitem> <img src="//i.cdn.yimenapp.com/2023-04/03/11/09458250694.jpg"/> <div class=content> <a class=title href="info@-exe-da-bao-cheng-apk-3233.html">exe打包成apk</a> <div class=summary>将exe文件打包成apk文件主要是为了将Windows上的应用程序移植到Android平台上。这种转换过程需要使用一些工具和技术,下面我们将详细介绍这个过程的原理和步骤。首先,我们需要了解exe和apk文件的格式。EXE是Windows可执行文件的格式,而</div> <div class=date>2023-04-06</div> </div> </div> </div> </div> <div class="topMs" style="height:auto;background:#fff;"></div> <style> .footer {background: #F9F9FA;height: auto;width: 100%;clear: both;} .link_list1 {width: 100%;clear: both;border-top: 1px solid #fff;margin-top: 9px;} .fflist {position: relative;height: auto;} .fflist-title {position: absolute;left: 0;text-align: left;line-height: 25px;font-size: 13px;color: #6a7582;letter-spacing: .43px;padding-right: 20px;font-weight: 700;} .fflist-wrap {zoom: 1;padding-left: 70px;width: 100%;box-sizing: border-box;} .fflist-link{display: inline-block;width: 10%;text-align: left;line-height: 25px;font-size: 12px;color: #6a7582;letter-spacing: .43px;text-decoration: none;} </style> <div class="footer"> <div class="width_normal"> <ul class="foot_ul"> <li class="foot_title">一门APP</li> <li><a href="https://www.yimenapp.com/aboutus.html">关于我们&nbsp;&#8250;</a></li> <li><a href="https://www.yimenapp.com/info/shi-yong-tiao-kuan-258.html">使用条款&nbsp;&#8250;</a></li> <li><a href="https://www.yimenapp.com/aboutus.html">隐私条款&nbsp;&#8250;</a></li> <li><a href="https://www.yimenapp.com/aboutus.html">企业文化&nbsp;&#8250;</a></li> <li><a href="https://www.yimenapp.com/aboutus.html">企业历程&nbsp;&#8250;</a></li> </ul> <ul class="foot_ul"> <li class="foot_title">主要产品</li> <li><a href="https://www.yimenapp.com/more.html">一门APP&nbsp;&#8250;</a></li> <li><a href="https://www.yimenapp.com/exe.html">一门应用&nbsp;&#8250;</a></li> <li><a href="https://www.yimenapp.com/shop.cshtml">一门云商城&nbsp;&#8250;</a></li> <li><a href="https://www.yimenapp.com/jiaocheng.html">使用教程&nbsp;&#8250;</a></li> </ul> <ul class="foot_ul"> <li class="foot_title">增值服务</li> <li><a href="https://www.yimenapp.com/iosup.html">苹果上架&nbsp;&#8250;</a></li> <li><a href="https://www.yimenapp.com/androidup.html">安卓上架&nbsp;&#8250;</a></li> <li><a href="https://www.yimenapp.com/appruanzhu.html">软著申请&nbsp;&#8250;</a></li> <li><a href="https://bbs.yimenapp.com/forum-151-1.html">应用内测&nbsp;&#8250;</a></li> </ul> <ul class="foot_ul"> <li class="foot_title">开放平台</li> <li><a href="/module">组件模块&nbsp;&#8250;</a></li> <li><a href="doc/demo.cshtml">APP Demo&nbsp;&#8250;</a></li> <li><a href="/desktop/doc/#/api/variable">PC Demo&nbsp;&#8250;</a></li> <li><a href="https://bbs.yimenapp.com">开发者社区&nbsp;&#8250;</a></li> </ul> <ul class="foot_ul"> <li class="foot_title">语言版本</li> <li><a href="/" onclick='document.cookie="_ymlang=zh"'>简体中文&nbsp;&#8250;</a></li> <li><a href="/" onclick='document.cookie="_ymlang=zh-tw"'>繁体中文&nbsp;&#8250;</a></li> <li><a href="/" onclick='document.cookie="_ymlang=en"'>英文&nbsp;&#8250;</a></li> </ul> <ul class="foot_ul contactUs"> <li class="foot_title"><a href="aboutus.html">联系我们</a></li> <li>企业电话: 4001658508</li> <li>企业QQ: 4001658508</li> <li>座机: 028-65787095</li> <li>邮箱: dev@yimenapp.com</li> <li>地址: 四川省成都市高新区剑南大道1537号3栋4楼</li> </ul> <div class="link_list1"> <div class="fflist"> <span class="fflist-title">一门产品</span> <div class="fflist-wrap"> <a class="fflist-link" href="/more.html" target="_blank">APP打包</a> <a class="fflist-link" href="https://sapp.yimenapp.com" target="_blank">小程序打包</a> <a class="fflist-link" href="//exe.yimenapp.com" target="_blank">EXE打包</a> <a class="fflist-link" href="/shop.html" target="_blank">云商城</a> <a class="fflist-link" href="/discuz.html" target="_blank">Discuz app</a> <a class="fflist-link" href="/wordpress.html" target="_blank">Wordpress app</a> <a class="fflist-link" href="/webclip.html" target="_blank">Webclip</a> <a class="fflist-link" href="/softpage.html" target="_blank">APP软著申请</a> <a class="fflist-link" href="/iosup.html" target="_blank">APP上架</a> <a class="fflist-link" href="/ssl.html" target="_blank">SSL加密</a> <a class="fflist-link" href="/iosmianqian.html" target="_blank">IOS免签版</a> <a class="fflist-link" href="/vueapp.html" target="_blank">vue做APP</a> <a class="fflist-link" href="/appfenfa.html" target="_blank">APP分发</a> <a class="fflist-link" href="https://platform.yimenapp.com/ioszhengshu.html" target="_blank">IOS证书制作工具</a> <a class="fflist-link" href="https://zaixian.yimenapp.com/androidzhengshu.html" target="_blank">安卓证书制作工具</a> <a class="fflist-link" href="https://tool.yimenapp.com/chongqianming.html" target="_blank">安卓重签名工具</a> <a class="fflist-link" href="https://www.yimenapp.com/special.html" target="_blank">更多</a> </div> </div> <div class="fflist"> <span class="fflist-title">一门文档</span> <div class="fflist-wrap"> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/category/zixun/" target="_blank">行业技术</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/category/androidinfo/" target="_blank">安卓开发</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/category/iosinfo/" target="_blank">IOS开发</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/category/www/" target="_blank">互联网</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/category/windows/" target="_blank">Windows</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/category/macos/" target="_blank">Macos</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/category/kaifangpingtai/" target="_blank">开放平台</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/category/jssdk/" target="_blank">JS-SDK</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/category/appcs/" target="_blank">测试分发</a> </div> </div> <div class="fflist"> <span class="fflist-title">三方平台</span> <div class="fflist-wrap"> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/app/hwopen/" target="_blank">华为开放平台</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/app/oppokfpt/" target="_blank">OPPO开放平台</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/app/vivokfpt/" target="_blank">VIVO开放平台</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/app/xiaomikfpt/" target="_blank">小米开放平台</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/app/meizukfpt/" target="_blank">魅族开放平台</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/app/weixinopen/" target="_blank">微信开放平台</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/app/zfbopen/" target="_blank">支付宝开放平台</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/app/baiduopen/" target="_blank">百度开放平台</a> <a class="fflist-link" href="https://www.yimenapp.com/kb-yimen/app/qqopen/" target="_blank">腾讯开放平台</a> </div> </div> <div class="fflist"> <span class="fflist-title">推荐模块</span> <div class="fflist-wrap"> <a class="fflist-link" href="/module/yuan-sheng-biao-ti-lan-1.html" target="_blank">原生标题栏</a> <a class="fflist-link" href="/module/sao-yi-sao-8.html" target="_blank">扫一扫</a> <a class="fflist-link" href="/module/an-gao-qi-dong-bing-32.html" target="_blank">广告启动屏</a> <a class="fflist-link" href="/module/wei-xin-fen-xiang-33.html" target="_blank">微信分享</a> <a class="fflist-link" href="/module/ce-bian-lan-52.html" target="_blank">侧边栏</a> <a class="fflist-link" href="/module/AppsFlyer--tong-ji-152.html" target="_blank">AppsFlyer统计</a> <a class="fflist-link" href="/module/zhi-fu-bao-zhi-fu-37.html" target="_blank">支付宝支付</a> <a class="fflist-link" href="/module/X5-nei-he-20.html" target="_blank">X5内核</a> <a class="fflist-link" href="/module/chuan-shan-jia-an-gao-90.html" target="_blank">穿山甲广告</a> <a class="fflist-link" href="/module/liu-lan-qi-UA-13.html" target="_blank">浏览器UA</a> <a class="fflist-link" href="/module/iOS-nei-gou-30.html" target="_blank">IOS内购</a> <a class="fflist-link" href="/module/tuo-luo-yi-59.html" target="_blank">陀螺仪</a> <a class="fflist-link" href="/module/ji-shi-tong-xun-64.html" target="_blank">融云IM</a> <a class="fflist-link" href="/module/IDFA--an-gao-biao-shi-fu-75.html" target="_blank">IDFA广告标识</a> <a class="fflist-link" href="/module/IMEIOAID--biao-shi-74.html" target="_blank">IMEI/OAID</a> <a class="fflist-link" href="/module/ge-tui-tui-song-39.html" target="_blank">个推推送</a> <a class="fflist-link" href="/module/gao-de-ding-wei-130.html" target="_blank">高德定位</a> <a class="fflist-link" href="/module/wei-xin-deng-lu-11.html" target="_blank">微信登录</a> </div> </div> <div style="text-align:center;padding-top:2em;line-height:2.2em"><a href="/jiage-21.html">网站一键打包app软件</a> <span style="color:#ddd"> | </span> <a href="/jiage-117.html">手机应用软件打包</a> <span style="color:#ddd"> | </span> <a href="/jiage-143.html">移动端打包成app</a> <span style="color:#ddd"> | </span> <a href="/jiage-570.html">h5混合app打包</a> <span style="color:#ddd"> | </span> <a href="/jiage-598.html">苹果打包封装</a> <span style="color:#ddd"> | </span> <a href="/jiage-1128.html">安卓手机软件打包apk</a> <span style="color:#ddd"> | </span> <a href="/jiage-1157.html">sdk打包封装成个apk</a> <span style="color:#ddd"> | </span> <a href="/jiage-1267.html">安卓生成apk</a> <span style="color:#ddd"> | </span> <a href="/jiage-1540.html">wine打包软件</a> <span style="color:#ddd"> | </span> <a href="/jiage-1734.html">delphi打包网页成app</a> <span style="color:#ddd"> | </span> <a href="/jiage-1801.html">app自动打包平台</a> <span style="color:#ddd"> | </span> <a href="/jiage-2287.html">谁帮我打包一下apk</a> <span style="color:#ddd"> | </span> <a href="/jiage-2436.html">web打包工具</a> <span style="color:#ddd"> | </span> <a href="/jiage-2514.html">html转apk</a> <span style="color:#ddd"> | </span> <a href="/jiage-2530.html">简单app制作软件</a> <span style="color:#ddd"> | </span> <a href="/jiage-2600.html">wordpress网站打包成app</a> <span style="color:#ddd"> | </span> <a href="/jiage-2903.html">ipa砸壳工具</a> <span style="color:#ddd"> | </span> <a href="/jiage-3013.html">app原生打包</a></div> <div class="link_list"> <span>友情链接:</span> <a href="https://www.yimenapp.com">APP开发</a> <a href="https://bbs.yimenapp.com">APP开发社区</a> <a href="http://www.anzhuoe.cn">安卓上架</a> <a href="https://www.yimenapp.net">APP打包</a> <a href="http://app.applebyme.cn">APP生成</a> <a href="http://www.yimenapp.cn">APP封装</a> <a href="http://www.uapp.club">webclip</a><a href="http://www.yizhanapp.com">驿站APP</a> <a href="http://discuz.yizhanapp.com">discuz做APP</a> <a href="http://www.applebyme.cn/">苹果APP上架</a> <a href="https://www.yimenapp.com/wordpress.html">wordpress app</a><a href="https://www.yimenssl.com/">低价ssl</a> <div style="clear:both;"></div> </div> </div> </div> <div class="bottom"> <div class="width_normal"> <span>©2015-2021 成都七扇门科技有限公司 yimenapp.com</span> <span><img src="//cdn.myapp.ltd/ag/35/img/foot_1.png"/>&nbsp;<a href="https://www.beian.gov.cn/portal/registerSystemInfo?recordcode=51019002001185">川公网安备 51019002001185号</a></span> <span><a href="https://beian.miit.gov.cn/">蜀ICP备17005078号-4</a></span> <span><a href="https://v.yunaq.com/certificate?domain=www.yimenapp.com&from=label&code=90030"><img src="//cdn.myapp.ltd/ag/35/img/foot_2.png" class="bot_img"/></a></span> <div style="clear:both;"></div> </div> </div> <!-- WPA start --> <script id="qd2852153749712b2d3cc16651c050fa3081fba21c66" src="https://wp.qiye.qq.com/qidian/2852153749/712b2d3cc16651c050fa3081fba21c66" charset="utf-8" async defer></script> <!-- WPA end --> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?3da5a313e099b629a89e99f0ef41896c"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?acb5b28fbdbef6aadca2373f2329a647"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <script> /*推广联盟*/ (function () { var m = /un=(\d+)/.exec(location.href.toLowerCase()); if (!m) return; var d = new Date(); d.setTime(d.getTime() + 12 * 3600 * 1000); document.cookie = "un=" + m[1] + ";path=/;expires=" + d.toGMTString(); })(); </script> <link rel=stylesheet href=https://cdn.staticfile.net/highlight.js/11.9.0/styles/vs2015.min.css /> <style>code[lang]::before{content:attr(lang);display:block;text-align:right;margin-bottom:8px;font-weight:bold;text-transform:capitalize}</style> <script src=https://cdn.staticfile.net/highlight.js/11.9.0/highlight.min.js></script> <script>hljs.highlightAll()</script></body> </html>