免费试用

中文化、本土化、云端化的在线跨平台软件开发工具,支持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@-python-xie-de-dai-ma-da-bao-cheng-apk-6202.html">python写的代码打包成apk</a> <div class=summary>Python是一种高级编程语言,被广泛应用于Web开发、数据分析、人工智能等领域。但是,Python不能直接编译成Android平台上的应用程序(APK),因此需要使用一些工具来将Python代码打包成APK。本文将介绍如何使用Python-for-And</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-sheng-cheng-app-6105.html">web生成app</a> <div class=summary>随着移动互联网的发展,越来越多的企业和个人开始关注如何将自己的网站转化为移动应用程序。这种将网页转化为移动应用程序的技术被称为“web生成app”。Web生成app的原理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@-sui-ji-da-bao-apk-5820.html">随机打包apk</a> <div class=summary>随机打包apk是一种常见的软件加固方法,可以增强apk的安全性,防止被反编译和篡改。它的原理是将apk中的代码进行混淆和加密,并在运行时动态解密执行。下面将详细介绍随机打包apk的原理和实现方法。一、加固原理随机打包apk的加固原理主要包括以下几个步骤: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@-h5-xie-mian-yi-jian-da-bao-app-5546.html">h5页面一建打包app</a> <div class=summary>随着移动互联网的不断发展,越来越多的企业开始关注移动应用的开发和推广。然而,对于一些中小企业来说,开发一款移动应用需要耗费大量的时间和资金,而且维护和更新也是一项不小的挑战。因此,一些企业开始尝试使用h5页面一建打包app的方式来解决这些问题。一建打包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@-ping-guo-ying-yong-da-bao-5360.html">苹果应用打包</a> <div class=summary>苹果应用打包,是将开发者开发的应用程序,通过Xcode工具将其编译、链接、打包成可供用户安装和使用的应用程序的过程。本文将从原理和详细步骤两个方面介绍苹果应用打包。一、原理苹果应用打包的原理是将应用程序的源代码编写成可执行文件,然后将可执行文件和相关资源文</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-h5-feng-zhuang-da-bao-5024.html">苹果h5封装打包</a> <div class=summary>苹果H5封装打包是将网页应用程序封装成iOS应用程序的过程,这种应用程序可以在苹果的移动设备中运行。在iOS应用程序中,使用的是UIWebView或WKWebView控件来加载网页内容。这种封装打包过程可以通过多种方式来实现,包括使用第三方框架、使用苹果提</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-yi-jian-zhi-zuo-4792.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@-ios-diao-shi-da-bao-4275.html">ios调试打包</a> <div class=summary>iOS调试打包是指将iOS应用程序打包成IPA文件,以便在设备上进行测试和调试。在本文中,我们将详细介绍iOS调试打包的原理和步骤。一、原理iOS应用程序是以Xcode工程的形式开发的,开发完成后需要将其打包成IPA文件,并利用Xcode将其安装到设备上进</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-tao-ke-app-da-bao-3909.html">h5套壳app打包</a> <div class=summary>H5套壳App是指将网页或H5页面通过技术手段嵌入到原生App中,以达到App的功能和体验,同时也可以通过App Store或应用市场进行下载和安装。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@-p4a-da-bao-apk-3716.html">p4a打包apk</a> <div class=summary>P4A是一款基于Python的开源工具,可以将Python代码打包成Android应用程序。P4A的全称为Python for Android,它使用了一些开源的工具和库,如SDL、Pygame等,来提供对Android平台的支持。P4A的打包过程主要包括</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@-ke-yi-da-bao-de-ruan-jian-3126.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@-ios-da-bao-ji-tong-3113.html">ios打包系统</a> <div class=summary>iOS打包系统是指将开发者编写的iOS应用程序打包成IPA文件的一系列过程。IPA文件是iOS应用程序的安装包,包含了应用程序的二进制文件、资源文件、配置文件、签名文件等内容。本文将从原理和详细介绍两个方面来阐述iOS打包系统。一、原理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-294.html">app自动化打包平台</a> <span style="color:#ddd"> | </span> <a href="/jiage-555.html">专业打包app</a> <span style="color:#ddd"> | </span> <a href="/jiage-689.html">链接ios格式打包</a> <span style="color:#ddd"> | </span> <a href="/jiage-1103.html">网页打包app源码</a> <span style="color:#ddd"> | </span> <a href="/jiage-1200.html">app打包工具安卓版</a> <span style="color:#ddd"> | </span> <a href="/jiage-1381.html">androidapp打包浏览器</a> <span style="color:#ddd"> | </span> <a href="/jiage-1486.html">自己做app</a> <span style="color:#ddd"> | </span> <a href="/jiage-2284.html">国外的网址打包apk工具</a> <span style="color:#ddd"> | </span> <a href="/jiage-2299.html">asar打包软件</a> <span style="color:#ddd"> | </span> <a href="/jiage-2303.html">fusionapp打包ios</a> <span style="color:#ddd"> | </span> <a href="/jiage-2375.html">不用实名的app打包平台</a> <span style="color:#ddd"> | </span> <a href="/jiage-2397.html">手动打包apk</a> <span style="color:#ddd"> | </span> <a href="/jiage-2527.html">app打包成apk方式</a> <span style="color:#ddd"> | </span> <a href="/jiage-2548.html">网址获取app</a> <span style="color:#ddd"> | </span> <a href="/jiage-2636.html">vue网站转为app打包工具</a> <span style="color:#ddd"> | </span> <a href="/jiage-2699.html">网址是否可以做成app</a> <span style="color:#ddd"> | </span> <a href="/jiage-2879.html">apk的sdk版本</a> <span style="color:#ddd"> | </span> <a href="/jiage-3033.html">apk转ipa工具</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>