免费试用

中文化、本土化、云端化的在线跨平台软件开发工具,支持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@-wang-zhi-zai-xian-da-bao-cheng-app-5985.html">网址在线打包成app</a> <div class=summary>在互联网时代,移动应用程序(APP)已经成为人们生活不可或缺的一部分。对于网站博主来说,将自己的网站打包成APP,可以更好地提升用户体验和品牌形象。在这篇文章中,我们将详细介绍如何将网址在线打包成APP的原理和步骤。一、原理将网址打包成APP的原理是通过W</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@-ipa-da-bao-qian-ming-5624.html">ipa打包签名</a> <div class=summary>IPA是iOS应用程序包的文件格式,是在Xcode中打包应用程序的结果。在将应用程序提交到App Store之前,必须对IPA文件进行签名。本文将介绍IPA打包签名的原理和详细过程。一、IPA打包签名的原理iOS应用程序的安装必须经过苹果公司的认证,只有通</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@-html-da-bao-gong-ju-5574.html">html打包工具</a> <div class=summary>HTML打包工具是一种将多个HTML文件和相关资源文件打包成一个文件的工具。它可以将多个HTML文件、CSS样式表、JavaScript脚本、图片、音频、视频等资源文件打包成一个文件,以便于在网站上进行发布和使用。本文将介绍HTML打包工具的原理和详细使用</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@-h5-da-bao-app-ping-tai-5454.html">h5打包app平台</a> <div class=summary>H5打包App平台是一种将H5网页转化为App的工具,可以将H5网页打包成原生App安装包,使得用户可以在手机上直接打开使用。这种平台是近年来非常流行的一种技术,它可以大大降低开发成本,同时也提高了App的开发效率。H5打包App平台的原理是将H5网页转化</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@-yun-da-bao-app-5449.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@-webapp-da-bao-wgt-4752.html">webapp打包wgt</a> <div class=summary>Web App是一种基于Web技术的应用程序,它可以通过浏览器来访问,并且不需要安装,这种应用程序的优势在于可以跨平台使用,无需考虑操作系统的问题。在移动互联网时代,Web 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@-da-bao-wang-xie-4724.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/09458250694.jpg"/> <div class=content> <a class=title href="info@-wang-zhan-app-da-bao-cheng-apk-4487.html">网站app打包成apk</a> <div class=summary>将网站打包成apk是一种将网站转化为移动应用的方式,这种方式可以使得用户更方便地使用网站,同时也可以提高网站的流量和用户体验。下面将介绍网站打包成apk的原理和详细步骤。1. 原理将网站打包成apk的原理是通过将网站的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/09458250694.jpg"/> <div class=content> <a class=title href="info@-html-he-css-da-bao-ios-3773.html">html和css打包ios</a> <div class=summary>在iOS开发中,HTML和CSS经常用于构建应用程序的用户界面。HTML是用于定义网页结构的标记语言,而CSS则是用于设计和布局网页的样式表语言。在本文中,我们将介绍如何将HTML和CSS打包到iOS应用程序中,并在应用程序中加载和显示它们。首先,让我们看</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@-flutter-an-zhuo-da-bao-apk-3585.html">flutter安卓打包apk</a> <div class=summary>Flutter是一个跨平台的移动应用程序开发框架,可以让您使用单个代码库同时构建iOS和Android应用程序。在Flutter中,您可以使用Android Studio或VS Code等IDE来编写代码,并使用Flutter命令行工具来构建和打包应用程序</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-tao-ke-app-3429.html">ios套壳app</a> <div class=summary>iOS套壳App是指使用iOS应用程序包装技术将Web应用程序封装为iOS原生应用程序的一种技术。这种技术可以将一些基于Web的应用程序,如H5、WebApp等,通过套壳技术转化为iOS应用程序,让其具有原生应用程序的外观和交互效果,同时也可以在应用商店中</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-wen-jian-da-bao-3122.html">php文件打包</a> <div class=summary>PHP文件打包指的是将多个PHP文件或文件夹打包成一个单独的文件或文件夹,以便于在其他地方或服务器上使用。这种打包方式可以减少文件数量,简化文件结构,方便传输和管理。PHP文件打包的原理是将多个文件或文件夹打包成一个压缩文件,常用的压缩格式有zip和tar</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-364.html">app打包系统</a> <span style="color:#ddd"> | </span> <a href="/jiage-408.html">webpack打包app</a> <span style="color:#ddd"> | </span> <a href="/jiage-723.html">苹果apk打包</a> <span style="color:#ddd"> | </span> <a href="/jiage-1024.html">ios打包调试</a> <span style="color:#ddd"> | </span> <a href="/jiage-1292.html">apk打包捆绑软件</a> <span style="color:#ddd"> | </span> <a href="/jiage-1299.html">tar打包软件</a> <span style="color:#ddd"> | </span> <a href="/jiage-1429.html">苹果推送打包</a> <span style="color:#ddd"> | </span> <a href="/jiage-1505.html">专业的网站打包app平台</a> <span style="color:#ddd"> | </span> <a href="/jiage-1593.html">多个网站打包app</a> <span style="color:#ddd"> | </span> <a href="/jiage-1797.html">app开发打包</a> <span style="color:#ddd"> | </span> <a href="/jiage-2107.html">ios打包系统</a> <span style="color:#ddd"> | </span> <a href="/jiage-2216.html">as打包生成apk</a> <span style="color:#ddd"> | </span> <a href="/jiage-2398.html">url打包安卓</a> <span style="color:#ddd"> | </span> <a href="/jiage-2423.html">ios企业证书打包app</a> <span style="color:#ddd"> | </span> <a href="/jiage-2448.html">ios原声本地打包</a> <span style="color:#ddd"> | </span> <a href="/jiage-2892.html">html打包成apk软件</a> <span style="color:#ddd"> | </span> <a href="/jiage-3056.html">随机打包apk</a> <span style="color:#ddd"> | </span> <a href="/jiage-3060.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>