免费试用

中文化、本土化、云端化的在线跨平台软件开发工具,支持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/09458250694.jpg"/> <div class=content> <a class=title href="info@-html-kai-fa-gong-ju-6240.html">html开发工具</a> <div class=summary>HTML(HyperText Markup Language)是一种标记语言,用于创建网页。在编写HTML代码时,可以使用纯文本编辑器,但这往往会非常繁琐。为了提高编码效率,出现了许多HTML开发工具,例如Dreamweaver、Sublime Text、</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-an-zhuo-app-6057.html">打包安卓app</a> <div class=summary>打包安卓app是将开发好的安卓应用程序打包成一个安装包,以便用户可以下载、安装和使用应用程序。打包安卓app的过程主要包括编译、签名和打包三个步骤。1. 编译编译是将应用程序的源代码转换成可执行的二进制代码的过程。在安卓开发中,使用Java编写应用程序,因</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-da-bao-ruan-jian-5254.html">app打包软件</a> <div class=summary>App打包软件是一种用于将应用程序打包成可安装文件的软件工具。这种工具通常被开发者用来将应用程序打包成安装包,以便用户可以轻松地将其安装到他们的设备上。在本文中,我们将介绍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@-yi-jian-da-bao-ruan-jian-5032.html">一键打包软件</a> <div class=summary>一键打包软件是指将一个或多个软件程序、库、配置文件、资源等打包成一个可执行文件或安装包的工具。它的原理是将所有需要的文件和资源打包成一个单独的文件,使得用户可以方便地下载、安装和运行软件。一键打包软件通常包含以下几个步骤:1. 收集文件和资源一键打包软件需</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@-yuan-sheng-da-bao-app-4882.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-da-bao-4293.html">h5打包</a> <div class=summary>H5打包是一种将网页应用程序打包成移动应用程序的技术。它可以让开发者使用HTML、CSS和JavaScript等技术,以一种统一的方式来创建跨平台的应用程序。在本文中,我们将详细介绍H5打包的原理和实现。一、H5打包的原理在介绍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@-an-zhuo-apk-da-bao-4238.html">安卓apk打包</a> <div class=summary>安卓apk打包是将安卓应用程序打包成一个apk文件的过程。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@-android-li-xian-da-bao-4137.html">android离线打包</a> <div class=summary>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@-ios-ying-yong-tui-jian-3939.html">ios应用推荐</a> <div class=summary>iOS系统是目前全球使用最广泛的移动操作系统之一,其应用程序也是非常丰富和多样化的。以下是一些值得推荐的iOS应用程序,它们涵盖了不同的领域和功能。1. EvernoteEvernote是一款非常流行的笔记应用程序,它可以让用户轻松地创建、组织和分享笔记。</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-zhan-da-bao-cheng-tvapp-3833.html">把网站打包成tvapp</a> <div class=summary>将网站打包成TVAPP的原理是将网站转换为一个可以在电视上运行的应用程序。这样做的好处是可以提高用户体验,让用户在电视上更方便地使用你的网站。具体实现的步骤如下:1.选择适当的打包工具首先需要选择适合打包网站的工具。目前市面上有很多打包工具,比如 Elec</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@-ping-guo-shou-ji-da-bao-wen-jian-3821.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/05982576251.jpg"/> <div class=content> <a class=title href="info@-app-de-zuo-yong-3276.html">app的作用</a> <div class=summary>APP,全称Application,即应用程序。它是一种可以在移动设备中运行的软件程序,与传统的电脑应用程序相比,APP更加轻便、便捷,可以随时随地使用。APP的原理是通过移动设备的操作系统来运行,不同的操作系统使用的APP也有所不同。比如,苹果的iOS系</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-18.html">源码打包成app</a> <span style="color:#ddd"> | </span> <a href="/jiage-354.html">能够离线打包app的平台</a> <span style="color:#ddd"> | </span> <a href="/jiage-426.html">苹果h5封装打包</a> <span style="color:#ddd"> | </span> <a href="/jiage-804.html">网页打包为app</a> <span style="color:#ddd"> | </span> <a href="/jiage-1174.html">安卓打包系统app</a> <span style="color:#ddd"> | </span> <a href="/jiage-1211.html">网页包装apk</a> <span style="color:#ddd"> | </span> <a href="/jiage-1212.html">android离线打包</a> <span style="color:#ddd"> | </span> <a href="/jiage-1339.html">一键打包网址为ipa</a> <span style="color:#ddd"> | </span> <a href="/jiage-1392.html">h5本地打包apk</a> <span style="color:#ddd"> | </span> <a href="/jiage-1477.html">苹果软件打包编译</a> <span style="color:#ddd"> | </span> <a href="/jiage-1558.html">网站链接打包成app</a> <span style="color:#ddd"> | </span> <a href="/jiage-1647.html">ios打包软件</a> <span style="color:#ddd"> | </span> <a href="/jiage-2178.html">安卓多渠道打包</a> <span style="color:#ddd"> | </span> <a href="/jiage-2349.html">py打包手机apk</a> <span style="color:#ddd"> | </span> <a href="/jiage-2449.html">本地网页免费打包apk工具</a> <span style="color:#ddd"> | </span> <a href="/jiage-2874.html">h5打包发布ios</a> <span style="color:#ddd"> | </span> <a href="/jiage-3013.html">app原生打包</a> <span style="color:#ddd"> | </span> <a href="/jiage-3074.html">iosapp包</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>