免费试用

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

苹果软件打包网站

苹果软件打包网站,也被称为苹果软件封装网站,是指一种将苹果应用程序打包成安装包的网站。这样可以方便用户下载和安装软件,同时也可以保护软件的版权和安全性。下面将详细介绍苹果软件打包网站的原理和操作流程。

一、原理

苹果软件打包网站的原理是将苹果应用程序打包成安装包,让用户可以直接下载安装。苹果应用程序通常是以.app为后缀的文件,这种文件不能直接被安装在其他电脑上。但是,苹果操作系统提供了一种打包工具——pkgbuild,可以将苹果应用程序打包成.pkg安装包。苹果软件打包网站就是利用这种工具将苹果应用程序打包成.pkg安装包,并上传到服务器上,供用户下载和安装。

二、操作流程

苹果软件打包网站的操作流程主要包括以下几个步骤:

1. 准备工作

在打包之前,需要准备好以下工具和文件:

- Xcode:苹果官方开发工具,用于编写和打包应用程序。

- pkgbuild:苹果提供的打包工具,可以将应用程序打包成安装包。

- Distribution.xml:描述安装包的元数据文件,包括软件名称、版本号、作者、版权信息等。

- 应用程序文件:需要打包的应用程序文件。

2. 创建安装包

使用pkgbuild工具创建安装包,命令格式如下:

pkgbuild --root 应用程序目录 --identifier com.example.app --version 1.0 --install-location /Applications --scripts 脚本目录 安装包名称.pkg

其中,--root参数指定应用程序的根目录,--identifier参数指定唯一标识符,--version参数指定版本号,--install-location参数指定安装位置,--scripts参数指定脚本目录,安装包名称.pkg为自定义的安装包名称。

3. 编写元数据文件

使用文本编辑器编写Distribution.xml文件,描述安装包的元数据信息,命令格式如下:

软件名称

软件名称

软件名称.pkg

其中,标签指定软件名称,<background>标签指定安装界面背景图片,<license>、<readme>、<conclusion>标签分别指定安装过程中的许可协议、使用说明和安装完成后的提示信息。 <choices-outline>标签定义安装选项,<pkg-ref>标签指定安装包的唯一标识符和版本号,以及安装包的文件名。</p><p>4. 打包安装程序</p><p>使用productbuild工具将安装包和Distribution.xml文件打包成安装程序,命令格式如下:</p><p>productbuild --distribution Distribution.xml --resources 资源目录 --package-path 安装包目录 安装程序名称.pkg</p><p>其中,--distribution参数指定Distribution.xml文件路径,--resources参数指定资源目录,--package-path参数指定安装包目录,安装程序名称.pkg为自定义的安装程序名称。</p><p>5. 上传到网站</p><p>将打包好的安装程序上传到网站服务器,供用户下载和安装。</p><p>三、总结</p><p>苹果软件打包网站是一种将苹果应用程序打包成安装包的网站。其原理是利用pkgbuild工具将应用程序打包成.pkg安装包,再使用productbuild工具将安装包和Distribution.xml文件打包成安装程序。操作流程包括准备工作、创建安装包、编写元数据文件、打包安装程序和上传到网站。通过苹果软件打包网站,用户可以方便地下载和安装软件,同时也可以保护软件的版权和安全性。</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/08055934967.jpg"/> <div class=content> <a class=title href="info@-qu-dao-app-6183.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@-ios-qi-ye-zheng-shu-da-bao-app-5949.html">ios企业证书打包app</a> <div class=summary>iOS企业证书是苹果公司为企业提供的一种开发者证书,可以让企业开发者发布和分发应用程序,无需通过App Store审核,而是通过企业的内部分发渠道进行分发。这种方式可以让企业更加灵活地管理和分发应用程序,提高工作效率和用户体验。下面我们来详细介绍一下iOS</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@-xian-shang-ios-da-bao-5697.html">线上ios打包</a> <div class=summary>iOS应用的打包是指将应用程序的源代码、资源文件、框架、库文件、配置文件等打包成一个.ipa文件,以便在iOS设备上进行安装和使用。iOS应用的打包可以分为本地打包和线上打包两种方式,本文将重点介绍线上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@-zi-ji-zhi-zuo-yi-ge-app-5676.html">自己制作一个app</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@-app-zai-xian-yi-jian-da-bao-5306.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@-h5-zai-xian-da-bao-app-4985.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/09458250694.jpg"/> <div class=content> <a class=title href="info@-wang-xie-da-bao-app-xia-zai-4896.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@-ba-yi-dong-duan-wang-zhan-da-bao-wei-apk-4680.html">把移动端网站打包为apk</a> <div class=summary>移动端网站在市场上越来越受欢迎,但是在某些情况下,用户可能更喜欢使用一个独立的应用程序来访问网站。这时,我们可以将移动端网站打包为apk文件,使用户可以通过安装应用程序来访问网站。下面,我将介绍如何将移动端网站打包为apk文件。一、原理打包移动端网站为ap</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@-ba-wang-xie-da-bao-cheng-ruan-jian-4452.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@-iapp-da-bao-apk-3874.html">iapp打包apk</a> <div class=summary>iApp是一款用于iOS设备开发的集成开发环境(IDE)。它提供了一系列开发工具和框架,使得开发者可以更加方便地进行iOS应用程序的开发和调试。在iApp中,我们可以使用Xcode工具来创建和编写iOS应用程序的源代码,然后使用iApp中的打包工具将源代码</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@-web-xiang-mu-da-bao-cheng-apk-3823.html">web项目打包成apk</a> <div class=summary>将Web项目打包成APK,首先需要了解APK的构成和打包原理。APK是Android应用程序的安装包,它由多个文件和资源组成,其中最重要的文件是AndroidManifest.xml、classes.dex和res文件夹。AndroidManifest.x</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-zai-xian-da-bao-wang-zhan-3491.html">apk在线打包网站</a> <div class=summary>APK在线打包网站是一种在线工具,可以将用户提供的应用程序代码打包成APK文件,以便在Android设备上运行。APK在线打包网站的原理是将用户的应用程序代码上传到网站服务器,然后通过服务器上的一些工具和软件来打包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">关于我们 ›</a></li> <li><a href="https://www.yimenapp.com/info/shi-yong-tiao-kuan-258.html">使用条款 ›</a></li> <li><a href="https://www.yimenapp.com/aboutus.html">隐私条款 ›</a></li> <li><a href="https://www.yimenapp.com/aboutus.html">企业文化 ›</a></li> <li><a href="https://www.yimenapp.com/aboutus.html">企业历程 ›</a></li> </ul> <ul class="foot_ul"> <li class="foot_title">主要产品</li> <li><a href="https://www.yimenapp.com/more.html">一门APP ›</a></li> <li><a href="https://www.yimenapp.com/exe.html">一门应用 ›</a></li> <li><a href="https://www.yimenapp.com/shop.cshtml">一门云商城 ›</a></li> <li><a href="https://www.yimenapp.com/jiaocheng.html">使用教程 ›</a></li> </ul> <ul class="foot_ul"> <li class="foot_title">增值服务</li> <li><a href="https://www.yimenapp.com/iosup.html">苹果上架 ›</a></li> <li><a href="https://www.yimenapp.com/androidup.html">安卓上架 ›</a></li> <li><a href="https://www.yimenapp.com/appruanzhu.html">软著申请 ›</a></li> <li><a href="https://bbs.yimenapp.com/forum-151-1.html">应用内测 ›</a></li> </ul> <ul class="foot_ul"> <li class="foot_title">开放平台</li> <li><a href="/module">组件模块 ›</a></li> <li><a href="doc/demo.cshtml">APP Demo ›</a></li> <li><a href="/desktop/doc/#/api/variable">PC Demo ›</a></li> <li><a href="https://bbs.yimenapp.com">开发者社区 ›</a></li> </ul> <ul class="foot_ul"> <li class="foot_title">语言版本</li> <li><a href="/" onclick='document.cookie="_ymlang=zh"'>简体中文 ›</a></li> <li><a href="/" onclick='document.cookie="_ymlang=zh-tw"'>繁体中文 ›</a></li> <li><a href="/" onclick='document.cookie="_ymlang=en"'>英文 ›</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-22.html">webapp</a> <span style="color:#ddd"> | </span> <a href="/jiage-63.html">一键打包apk工具</a> <span style="color:#ddd"> | </span> <a href="/jiage-380.html">域名打包成app</a> <span style="color:#ddd"> | </span> <a href="/jiage-1378.html">html页面打包apk</a> <span style="color:#ddd"> | </span> <a href="/jiage-1404.html">应用app打包工具</a> <span style="color:#ddd"> | </span> <a href="/jiage-1407.html">网站一键封装app</a> <span style="color:#ddd"> | </span> <a href="/jiage-1554.html">apkopenssl打包安卓</a> <span style="color:#ddd"> | </span> <a href="/jiage-1561.html">网页生成apk</a> <span style="color:#ddd"> | </span> <a href="/jiage-1892.html">web地址打包app</a> <span style="color:#ddd"> | </span> <a href="/jiage-1894.html">苹果ipa打包分发</a> <span style="color:#ddd"> | </span> <a href="/jiage-1955.html">java打包手机apk</a> <span style="color:#ddd"> | </span> <a href="/jiage-2278.html">ionic打包apk</a> <span style="color:#ddd"> | </span> <a href="/jiage-2627.html">ipa包结构</a> <span style="color:#ddd"> | </span> <a href="/jiage-2931.html">ios打包appipa</a> <span style="color:#ddd"> | </span> <a href="/jiage-2981.html">vue3打包app</a> <span style="color:#ddd"> | </span> <a href="/jiage-3019.html">一键生成app应用</a> <span style="color:#ddd"> | </span> <a href="/jiage-3043.html">apk重新打包工具</a> <span style="color:#ddd"> | </span> <a href="/jiage-3091.html">在线打包网页应用</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"/> <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>