免费试用

中文化、本土化、云端化的在线跨平台软件开发工具,支持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@-yi-jian-da-bao-5684.html">一键打包</a> <div class=summary>一键打包是指将多个文件或文件夹打包成一个压缩文件的操作,常用于文件传输、备份等场景。一键打包的原理是将选定的文件或文件夹进行压缩,生成一个压缩文件,其中包含了原文件的所有内容,但占用的空间更小。一键打包的实现主要依靠压缩软件,如WinRAR、7-Zip等。</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@-zai-xian-da-bao-app-5486.html">在线打包app</a> <div class=summary>在线打包app是指通过网络平台将开发者开发的应用程序进行编译、打包、签名等一系列操作,最终生成可安装的apk或ipa文件。这种方式可以让开发者无需自己配置开发环境,可以快速打包出一个可用的应用程序,同时也方便了非专业人士的使用。下面将详细介绍在线打包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@-yuan-sheng-app-yun-da-bao-5280.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@-h5-ping-guo-da-bao-5073.html">h5苹果打包</a> <div class=summary>H5苹果打包是将基于H5技术开发的网页应用程序,通过特定的工具和技术,打包成为可以在苹果设备上运行的本地应用程序的过程。H5苹果打包的原理主要是将H5页面通过WebView控件进行加载,同时通过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@-html5-sheng-cheng-app-4673.html">html5生成app</a> <div class=summary>HTML5可以用于生成移动应用程序,这是一种基于网页技术的应用程序开发方法。HTML5应用程序可以在多个平台上运行,包括iOS、Android、Windows Phone和BlackBerry等移动设备平台。本文将介绍HTML5生成移动应用程序的原理和详细</div> <div class=date>2023-04-06</div> </div> </div> <div class=aitem> <img src="//i.cdn.yimenapp.com/2023-04/03/11/14599203846.jpg"/> <div class=content> <a class=title href="info@-ue-da-bao-androidapp-4421.html">ue打包androidapp</a> <div class=summary>在UE4引擎中,我们可以使用Android包装器将我们的项目打包成一个可在Android设备上运行的应用程序。本文将介绍UE4 Android打包器的原理和详细步骤。一、原理UE4 Android打包器的原理是将UE4项目转换为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@-yong-html5-zuo-cheng-app-4216.html">用html5做成app</a> <div class=summary>HTML5是一种用于构建Web应用程序的标准,它可以在不同的设备上运行,包括桌面电脑、平板电脑和手机。在这篇文章中,我们将讨论如何使用HTML5来创建一个移动应用程序。1. HTML5的基础知识HTML5是一种用于构建Web页面的标准,它包含了许多新的元素</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@-ping-guo-wang-zhi-yi-jian-mian-qian-lu-biao-da-bao-gong-ju-4047.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@-jiang-web-wang-xie-da-bao-cheng-app-3476.html">将web网页打包成app</a> <div class=summary>将Web网页打包成App,是一种将Web应用程序转化为原生应用程序的技术,也称为混合应用程序。这种技术可以将Web应用程序的优势与原生应用程序的优势相结合,为用户提供更好的使用体验。本文将介绍将Web网页打包成App的原理和详细步骤。一、原理将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@-ios-mian-qian-da-bao-3207.html">ios免签打包</a> <div class=summary>iOS免签打包指的是在不需要通过苹果官方的签名机制即可在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@-vue-da-bao-shou-ji-app-3183.html">vue打包手机app</a> <div class=summary>Vue是一种流行的JavaScript框架,用于构建单页应用程序。Vue的优点之一是其灵活性,使开发人员能够轻松地将其用于各种不同的应用程序类型。虽然Vue最初是为Web应用程序构建而设计的,但它也可以用于构建移动应用程序。本文将介绍如何使用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@-apk-bao-3137.html">apk包</a> <div class=summary>APK包是安卓应用程序的安装包,是Android应用程序的一种标准格式。APK包包含了应用程序的所有必要组件,包括代码、资源、配置文件和其他文件。APK包是Android应用程序的主要分发方式,用户可以从应用商店或其他渠道下载APK包来安装应用程序。APK</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-160.html">自制网页打包软件</a> <span style="color:#ddd"> | </span> <a href="/jiage-236.html">前端项目打包成app</a> <span style="color:#ddd"> | </span> <a href="/jiage-267.html">ios在线打包app</a> <span style="color:#ddd"> | </span> <a href="/jiage-308.html">云端app打包</a> <span style="color:#ddd"> | </span> <a href="/jiage-448.html">app打包签名</a> <span style="color:#ddd"> | </span> <a href="/jiage-468.html">源码打包成app工具</a> <span style="color:#ddd"> | </span> <a href="/jiage-535.html">在线网站打包app</a> <span style="color:#ddd"> | </span> <a href="/jiage-582.html">苹果免签打包</a> <span style="color:#ddd"> | </span> <a href="/jiage-735.html">html5兼容安卓和ios</a> <span style="color:#ddd"> | </span> <a href="/jiage-742.html">ios越狱包打包</a> <span style="color:#ddd"> | </span> <a href="/jiage-1552.html">web打包app自动横屏</a> <span style="color:#ddd"> | </span> <a href="/jiage-1646.html">vueapp打包</a> <span style="color:#ddd"> | </span> <a href="/jiage-2106.html">网站app封装</a> <span style="color:#ddd"> | </span> <a href="/jiage-2498.html">h5打成iosapp</a> <span style="color:#ddd"> | </span> <a href="/jiage-2633.html">网站在线封包apk</a> <span style="color:#ddd"> | </span> <a href="/jiage-2712.html">苹果ipa打包选择</a> <span style="color:#ddd"> | </span> <a href="/jiage-3027.html">安卓app分发</a> <span style="color:#ddd"> | </span> <a href="/jiage-3039.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>