免费试用

中文化、本土化、云端化的在线跨平台软件开发工具,支持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@-apk-da-bao-jie-bao-gong-ju-6071.html">apk打包解包工具</a> <div class=summary>APK是Android应用程序的安装包格式,它包含了应用程序的所有资源和代码。APK打包解包工具可以帮助开发人员对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@-apk-yi-ji-yi-ma-gong-ju-an-zhuo-ban-5614.html">apk一机一码工具安卓版</a> <div class=summary>APK一机一码工具是一款可以生成唯一的设备ID的工具,也称为设备指纹。这个工具最初是为了防止恶意软件和黑客攻击而设计的,现在被广泛应用于市场调研、广告跟踪和用户分析等领域。下面将详细介绍这个工具的原理和用法。一、原理设备ID是一个独特的标识符,用于区分不同</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@-shang-cheng-xu-feng-zhuang-app-5004.html">上程序封装app</a> <div class=summary>封装app是指将一个网站或者一个程序通过一定的技术手段打包成一个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@-app-feng-zhuang-zhong-wen-ban-4972.html">app封装中文版</a> <div class=summary>App封装是指将一个原生应用程序通过某种手段打包成一个安装包,以便于在不同的平台上进行发布和安装。一般来说,App封装可分为两种方式:本地封装和云封装。本地封装是指在本地环境中通过某种工具或者SDK将原生应用程序打包成一个安装包。常见的本地封装工具包括:C</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@-ios-da-bao-dao-web-4389.html">ios打包到web</a> <div class=summary>iOS应用程序是使用iOS SDK和Objective-C或Swift编写的,这些应用程序是专门为iOS设备设计的,因此它们无法直接在Web浏览器中运行。但是,有时候我们需要将iOS应用程序打包成Web应用程序,以便在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@-apktools-da-bao-4332.html">apktools打包</a> <div class=summary>APKTools是一款开源的Android应用程序包(APK)反编译、打包工具。它可以将APK文件反编译成可读的源代码,并且可以修改、替换其中的资源文件,再重新打包成新的APK文件。它是一款非常实用的工具,尤其对于Android开发者来说,可以帮助他们更好</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-da-bao-cheng-apk-4249.html">安卓打包成apk</a> <div class=summary>在移动应用开发中,安卓打包成APK是必不可少的一步。APK是Android Package的缩写,是安卓应用程序的安装包。本文将对安卓打包成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-cheng-ruan-jian-4132.html">网站打包成软件</a> <div class=summary>将网站打包成软件是一种将网站转换为本地应用程序的方法。这种方法可以提高网站的访问速度、安全性和稳定性。在本文中,我们将介绍将网站打包成软件的原理和详细步骤。一、原理将网站打包成软件的原理是将网站的 HTML、CSS 和 JavaScript 文件打包到本地</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@-html-wen-jian-sheng-cheng-app-4091.html">html文件生成app</a> <div class=summary>HTML文件生成APP的原理是将HTML文件通过特定的工具转换为APP应用程序。这个过程可以分为以下几个步骤:1.选择合适的工具有很多工具可以将HTML文件转换为APP应用程序。例如,PhoneGap、Cordova、Ionic等,这些工具都是基于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@-vue-ke-yi-da-bao-cheng-app-3886.html">vue可以打包成app</a> <div class=summary>Vue.js是一款流行的JavaScript框架,用于构建交互式Web应用程序。Vue.js可以轻松地开发单页面应用程序(SPA),但是如果您想要将Vue.js应用程序打包为原生移动应用程序,您需要采取额外的步骤。本文将介绍如何将Vue.js应用程序打包为</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@-zhi-jian-sheng-cheng-app-3867.html">制件生成app</a> <div class=summary>制件生成app是一种基于计算机辅助设计(CAD)技术的应用程序,它能够通过用户输入的参数和要求,自动生成符合要求的三维模型或制件。这种应用程序的主要原理是通过预设的算法和模板,将用户输入的参数和要求进行计算和处理,最终生成符合要求的三维模型或制件。制件生成</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@-ios-da-bao-she-zhi-3590.html">ios打包设置</a> <div class=summary>iOS打包是指将开发者所开发的iOS应用程序打包成一个IPA文件,以便于安装和分发。本文将从原理和详细介绍两个方面来讲解iOS打包设置。一、原理在iOS开发中,打包的过程其实就是将开发者的应用程序代码、资源文件、图标等打包成一个IPA文件,然后上传到App</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-292.html">苹果ios网页打包</a> <span style="color:#ddd"> | </span> <a href="/jiage-674.html">ioswebapp打包自己用</a> <span style="color:#ddd"> | </span> <a href="/jiage-709.html">网站打包成app在线生成</a> <span style="color:#ddd"> | </span> <a href="/jiage-849.html">app打包上线流程</a> <span style="color:#ddd"> | </span> <a href="/jiage-1063.html">android打包apk签名</a> <span style="color:#ddd"> | </span> <a href="/jiage-1091.html">apk添加文件打包</a> <span style="color:#ddd"> | </span> <a href="/jiage-1433.html">ios通过udid打包</a> <span style="color:#ddd"> | </span> <a href="/jiage-1750.html">互联网+做app</a> <span style="color:#ddd"> | </span> <a href="/jiage-1754.html">把网站转成app</a> <span style="color:#ddd"> | </span> <a href="/jiage-1796.html">苹果打包上传</a> <span style="color:#ddd"> | </span> <a href="/jiage-2035.html">fusionapp打包程序</a> <span style="color:#ddd"> | </span> <a href="/jiage-2150.html">apk文件打包二维码</a> <span style="color:#ddd"> | </span> <a href="/jiage-2170.html">网页封装app打包</a> <span style="color:#ddd"> | </span> <a href="/jiage-2189.html">py打包apk</a> <span style="color:#ddd"> | </span> <a href="/jiage-2290.html">安卓app重打包</a> <span style="color:#ddd"> | </span> <a href="/jiage-2606.html">web打包ipa</a> <span style="color:#ddd"> | </span> <a href="/jiage-2824.html">web项目打包为apk</a> <span style="color:#ddd"> | </span> <a href="/jiage-3100.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>