免费试用

中文化、本土化、云端化的在线跨平台软件开发工具,支持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@-lian-jie-da-bao-cheng-apk-6252.html">链接打包成apk</a> <div class=summary>APK是Android应用程序包的缩写,是Android应用程序的安装包。将多个链接打包成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/10790072908.jpg"/> <div class=content> <a class=title href="info@-h5-de-da-bao-5798.html">h5的打包</a> <div class=summary>HTML5是一种用于网站开发的语言,它是HTML的升级版,具有更多的新特性和功能。在开发一个网站时,我们通常需要将HTML、CSS、JavaScript等文件进行打包,以便于在浏览器中加载和展示。本文将介绍HTML5的打包原理和详细过程。一、打包原理在开发</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@-ba-vue-da-bao-cheng-an-zhuo-app-5767.html">把vue打包成安卓app</a> <div class=summary>Vue是一个流行的JavaScript框架,用于构建现代Web应用程序。它提供了一个简单的开发环境,可以快速创建单页面应用程序(SPA)。但是,Vue应用程序通常是在Web浏览器中运行的,如果您想将Vue应用程序打包成安卓应用程序,那么您需要使用一些额外的</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@-h5app-an-zhuo-da-bao-5416.html">h5+app安卓打包</a> <div class=summary>H5+APP是一种基于HTML5技术开发的APP,它可以在多个平台上运行,包括iOS、Android等。相对于原生APP,H5+APP具有开发成本低、跨平台性好、易于维护等优点,因此越来越受到开发者的青睐。在本文中,我们将介绍H5+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@-webview-da-bao-app-5220.html">webview打包app</a> <div class=summary>Webview是一个可以在Android应用中嵌入网页的组件,它提供了一种方便的方式将网页内容展示在应用中。在Android开发中,我们可以使用Webview来加载本地或远程的网页,这使得我们可以在应用中展示各种不同的内容,包括文章、图片、音频、视频等。W</div> <div class=date>2023-04-06</div> </div> </div> <div class=aitem> <img src="//i.cdn.yimenapp.com/2023-04/03/11/10790072908.jpg"/> <div class=content> <a class=title href="info@-ios-qi-ye-da-bao-4730.html">ios企业打包</a> <div class=summary>iOS企业打包是指将iOS应用程序打包成IPA文件并分发给企业内部员工使用的过程。相比于在App Store上发布应用,企业打包的方式更加灵活,可以自主分发应用,不必受到苹果审核的限制。企业打包的原理是在苹果开发者中心创建一个企业级证书,然后使用这个证书签</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@-mian-shen-he-app-da-bao-gong-ju-4308.html">免审核app打包工具</a> <div class=summary>免审核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@-iosapp-da-bao-fa-bu-4288.html">iosapp打包发布</a> <div class=summary>iOS应用程序的打包发布是将开发好的应用程序打包成IPA文件并上传到App Store上供用户下载使用的过程。下面将详细介绍iOS应用程序打包发布的原理和步骤。一、打包原理iOS应用程序的打包主要包含两个步骤:编译和打包。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@-php-zai-xian-da-bao-apk-3615.html">php在线打包apk</a> <div class=summary>PHP在线打包APK是一种将PHP应用程序转换为Android APK应用程序的技术,可以帮助开发人员快速将其PHP应用程序转换为Android应用程序,以便在移动设备上使用。本文将介绍PHP在线打包APK的原理和详细介绍。一、原理PHP在线打包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@-aia-wen-jian-da-bao-apk-3546.html">aia文件打包apk</a> <div class=summary>AIA文件是MIT App Inventor平台上的原始项目文件,它包含了App Inventor的所有组件、代码和资源文件。在MIT App Inventor平台上,用户可以使用图形化界面进行应用程序开发,然后将开发好的应用程序保存为AIA文件。但是,如</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-bian-cheng-da-bao-wei-apk-3528.html">安卓编程打包为apk</a> <div class=summary>安卓编程是指使用Java语言,通过Android SDK开发工具包,编写应用程序并运行在安卓操作系统上的一种开发方式。而打包为APK则是将安卓应用程序打包成一个Android Package文件,也就是我们常说的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@-uengineapk-da-bao-qi-3176.html">uengineapk打包器</a> <div class=summary>Uengineapk打包器是一款高效、易用的安卓应用打包工具,它可以将开发者开发的应用程序打包成安卓应用程序包(APK),使其可以在安卓设备上运行。Uengineapk打包器具有许多优点,比如快速打包、高效性能、易于使用等等。下面我们将详细介绍Uengin</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-15.html">网页打包exe</a> <span style="color:#ddd"> | </span> <a href="/jiage-31.html">app云端打包</a> <span style="color:#ddd"> | </span> <a href="/jiage-86.html">封装app</a> <span style="color:#ddd"> | </span> <a href="/jiage-271.html">将网址制作成app</a> <span style="color:#ddd"> | </span> <a href="/jiage-335.html">html网页打包app</a> <span style="color:#ddd"> | </span> <a href="/jiage-471.html">在线苹果打包工具</a> <span style="color:#ddd"> | </span> <a href="/jiage-564.html">网页打包tvapp</a> <span style="color:#ddd"> | </span> <a href="/jiage-843.html">app打包上架</a> <span style="color:#ddd"> | </span> <a href="/jiage-901.html">ios应用安卓包</a> <span style="color:#ddd"> | </span> <a href="/jiage-1195.html">网页变成app的软件</a> <span style="color:#ddd"> | </span> <a href="/jiage-1631.html">手机上做app的软件</a> <span style="color:#ddd"> | </span> <a href="/jiage-1829.html">apkpureapk</a> <span style="color:#ddd"> | </span> <a href="/jiage-1999.html">exe打包成apk</a> <span style="color:#ddd"> | </span> <a href="/jiage-2247.html">flutter打包成app</a> <span style="color:#ddd"> | </span> <a href="/jiage-2266.html">app分享apk</a> <span style="color:#ddd"> | </span> <a href="/jiage-2711.html">ipa代码</a> <span style="color:#ddd"> | </span> <a href="/jiage-2812.html">app制作平台</a> <span style="color:#ddd"> | </span> <a href="/jiage-2894.html">h5一键打包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>