×

giscus GitHub Discussions驱动的评论系统

消耗积分:2 | 格式:zip | 大小:0.39 MB | 2022-06-10

分享资料个

授权协议 MIT
开发语言 TypeScript
操作系统 跨平台
软件类型 开源软件
所属分类 建站系统论坛系统BBS

软件简介

giscus 是一个由 GitHub Discussions 驱动的评论系统。让访客借助 GitHub 在你的网站上留下评论和反应吧!本项目受 utterances 强烈启发。

  • 开源
  • 无跟踪,无广告,永久免费
  • 无需数据库,全部数据均储存在 GitHub Discussions 中
  • 支持自定义主题
  • 支持多种语言
  • 高度可配置
  • 自动从 GitHub 拉取新评论与编辑
  • 可自建服务

注意:
giscus 仍处于活跃开发中。GitHub 也还在活跃地开发 Discussions 及其 API。因此,一些 giscus 的特性可能随时间损坏或改变。

它如何运作

giscus 加载时,会使用 GitHub Discussions 搜索 API 根据选定的映射方式(如 URL、pathname</code><span> </span>等)来查找与当前页面关联的 discussion。如果找不到匹配的 discussion,giscus bot 就会在第一次有人留下评论或回应时自动创建一个 discussion。</p> <p> 要评论,访客必须按 GitHub OAuth 流程授权<span> </span>giscus app<span> </span>代表他发帖。或者访客也可以直接在 GitHub Discussion 里评论。你可以在 GitHub 上管理评论。</p> <h2> 高级用法</h2> <p> 你可以依照<a>高级用法指南</a>添加额外配置(例如允许特定来源)。</p> <p> 要在 React、Vue 和 Svelte 中使用 giscus,请查看<span> </span><a>giscus 组件库</a>。</p> <h2> 迁移</h2> <p> 如果你曾经使用过其它利用 GitHub Issue 的评论系统(如<span> </span><a>utterances</a>、<a>gitalk</a>),你可<a>把已有的 issue 转换成 discussion</a>。转换后,只要确保 discussion 标题与页面的映射关系正确,giscus 就会自动使用这些 discussion。</p> <h2> 正使用 giscus 的网站</h2> <ul><li> <a>laymonage.com</a></li> <li> <a>os.phil-opp.com</a></li> <li> <a>Stats and R</a></li> <li> <a>Tech Debt Burndown Podcast</a></li> <li> ……</li> </ul></div> </div> <div class="collapse-bar">  </div> </div> </div> </div> <br /></div> <!-- 标签页面 --> <div class="detail-label"> <ul class="clearfix"> <li> <a href="/tags/驱动.html">驱动</a> </li><li> <a href="/tags/GitHub.html">GitHub</a> </li> </ul> </div> <div class="dmm-intro"> <p style="display: none" class="integral" needmoney="2" extcredits3="0" tuid=1580003 >所需积分:2</p> <div style="padding: 10px 0px;" class="clearfix"> <span id="iOS-tip" style="display: none;vertical-align:top; line-height: 30px;">苹果系统暂不支持下载</span> <a data-url="https://www.elecfans.com/webapi/download?open=2&id=1846695&uhash=d88bd44c5f1ce77ef2852776" opentype="2" uid="1846695 " uhash="d88bd44c5f1ce77ef2852776" href="javascript:;" id="download" class="compulsoryPop">下载并关注上传者</a> <a data-url="https://www.elecfans.com/webapi/download?open=3&id=1846695&uhash=d88bd44c5f1ce77ef2852776" href="javascript:;" id="vipdownload" opentype="3" uid="1846695 " uhash="d88bd44c5f1ce77ef2852776" class="compulsoryPop"><em class="icon-vip-tips">低至0.43元/天</em> <span>开通VIP 免费下载</span></a> </div> <p class="dmm-tip" id="login-tip" style="display: none;">下载资料需要<a href="/login/index.html">登录</a>,并消耗一定积分。</p> </div> <p style="padding: 0 10px;box-sizing: border-box;margin-bottom: 20px;color: #999;line-height: 20px; font-size: 14px;"> 声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 <a href="/about/tousu.html" target="_blank" style="color: #2897c5;">举报投诉</a> </p> </section> <section class="scroll_height4"> <!--评论--> <div class="arc_comment comment"> <div class="comment_title flex"> <div>评论(<span >0</span>)</div> <div class="edit">发评论</div> </div> </div> </section> <section class="detail-container detail-nav-list detail-dowm-box"> <ul class="flex nav_select" > <li class="active" url="aboutdownloads"> 相关下载 </li> <li url="aboutarticle"> 相关文章 </li> </ul> <ul class="detail-dowm-list detail-dowm-list-box clearfix" > <li class="clearfix "> <div class="clearfix "> <div class="detail-down-img fl" > <a href="/article/2340551.html" > <img src="https://staticm.elecfans.com/images/rar.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/2340551.html"><h4><span style='color: #FF6600'>GitHub</span>入门与实践</h4></a> <span>2023-12-14</span> <span>6次下载</span> </div> </div> <div> <a href="/article/2340551.html">下载</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="detail-down-img fl" > <a href="/article/1838845.html" > <img src="https://staticm.elecfans.com/images/zip.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/1838845.html"><h4><span style='color: #FF6600'>GitHub</span> Notifier <span style='color: #FF6600'>Github</span>通知显示</h4></a> <span>2022-05-23</span> <span>3次下载</span> </div> </div> <div> <a href="/article/1838845.html">下载</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="detail-down-img fl" > <a href="/article/1838846.html" > <img src="https://staticm.elecfans.com/images/zip.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/1838846.html"><h4><span style='color: #FF6600'>github</span>-gmail <span style='color: #FF6600'>Github</span>通知邮件</h4></a> <span>2022-05-23</span> <span>1次下载</span> </div> </div> <div> <a href="/article/1838846.html">下载</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="detail-down-img fl" > <a href="/article/1741048.html" > <img src="https://staticm.elecfans.com/images/pdf.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/1741048.html"><h4><span style='color: #FF6600'>GitHub</span>入门与实践</h4></a> <span>2021-11-21</span> <span>0次下载</span> </div> </div> <div> <a href="/article/1741048.html">下载</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="detail-down-img fl" > <a href="/article/1646189.html" > <img src="https://staticm.elecfans.com/images/pdf.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/1646189.html"><h4>基于终身机器学习的主题挖掘评分和<span style='color: #FF6600'>评论</span>推荐模型</h4></a> <span>2021-06-27</span> <span>42次下载</span> </div> </div> <div> <a href="/article/1646189.html">下载</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="detail-down-img fl" > <a href="/article/1644708.html" > <img src="https://staticm.elecfans.com/images/pdf.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/1644708.html"><h4>基于评分矩阵与<span style='color: #FF6600'>评论</span>文本的深度学习模型</h4></a> <span>2021-06-24</span> <span>58次下载</span> </div> </div> <div> <a href="/article/1644708.html">下载</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="detail-down-img fl" > <a href="/article/1637079.html" > <img src="https://staticm.elecfans.com/images/pdf.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/1637079.html"><h4>基于规则的商品<span style='color: #FF6600'>评论</span>搭配抽取方法</h4></a> <span>2021-06-11</span> <span>128次下载</span> </div> </div> <div> <a href="/article/1637079.html">下载</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="detail-down-img fl" > <a href="/article/1635487.html" > <img src="https://staticm.elecfans.com/images/pdf.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/1635487.html"><h4>基于深度学习的<span style='color: #FF6600'>评论</span>文本推荐方法</h4></a> <span>2021-06-09</span> <span>5次下载</span> </div> </div> <div> <a href="/article/1635487.html">下载</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="detail-down-img fl" > <a href="/article/1625817.html" > <img src="https://staticm.elecfans.com/images/pdf.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/1625817.html"><h4>面向用户<span style='color: #FF6600'>评论</span>的方面级情感分析技术综述</h4></a> <span>2021-05-29</span> <span>4次下载</span> </div> </div> <div> <a href="/article/1625817.html">下载</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="detail-down-img fl" > <a href="/article/1622218.html" > <img src="https://staticm.elecfans.com/images/pdf.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/1622218.html"><h4>商品虚假<span style='color: #FF6600'>评论</span>识别研究综述</h4></a> <span>2021-05-25</span> <span>5次下载</span> </div> </div> <div> <a href="/article/1622218.html">下载</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="detail-down-img fl" > <a href="/article/1608139.html" > <img src="https://staticm.elecfans.com/images/pdf.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/1608139.html"><h4>基于LSTM神经网络的<span style='color: #FF6600'>评论</span>句子依赖联系分析</h4></a> <span>2021-05-13</span> <span>1次下载</span> </div> </div> <div> <a href="/article/1608139.html">下载</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="detail-down-img fl" > <a href="/article/1607755.html" > <img src="https://staticm.elecfans.com/images/rar.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/1607755.html"><h4>基于DSP的用盘式抽油机同步电机<span style='color: #FF6600'>驱动</span><span style='color: #FF6600'>系统</span></h4></a> <span>2021-05-13</span> <span>27次下载</span> </div> </div> <div> <a href="/article/1607755.html">下载</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="detail-down-img fl" > <a href="/article/1605038.html" > <img src="https://staticm.elecfans.com/images/pdf.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/1605038.html"><h4>基于DSP的LED照明<span style='color: #FF6600'>驱动</span>控制<span style='color: #FF6600'>系统</span>设计方案</h4></a> <span>2021-05-11</span> <span>17次下载</span> </div> </div> <div> <a href="/article/1605038.html">下载</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="detail-down-img fl" > <a href="/article/1603957.html" > <img src="https://staticm.elecfans.com/images/pdf.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/1603957.html"><h4>结合正文的新闻<span style='color: #FF6600'>评论</span>情感分类方法综述</h4></a> <span>2021-05-10</span> <span>16次下载</span> </div> </div> <div> <a href="/article/1603957.html">下载</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="detail-down-img fl" > <a href="/article/1602189.html" > <img src="https://staticm.elecfans.com/images/rar.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/1602189.html"><h4>预测产品在线<span style='color: #FF6600'>评论</span>有用程度的模型</h4></a> <span>2021-05-08</span> <span>4次下载</span> </div> </div> <div> <a href="/article/1602189.html">下载</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="detail-down-img fl" > <a href="/article/1586336.html" > <img src="https://staticm.elecfans.com/images/pdf.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/1586336.html"><h4>针对APP用户<span style='color: #FF6600'>评论</span>数据的软件需求挖掘方法</h4></a> <span>2021-04-23</span> <span>8次下载</span> </div> </div> <div> <a href="/article/1586336.html">下载</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="detail-down-img fl" > <a href="/article/1584720.html" > <img src="https://staticm.elecfans.com/images/pdf.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/1584720.html"><h4>LED恒流<span style='color: #FF6600'>驱动</span>芯片和<span style='color: #FF6600'>系统</span>方案资源下载</h4></a> <span>2021-04-22</span> <span>68次下载</span> </div> </div> <div> <a href="/article/1584720.html">下载</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="detail-down-img fl" > <a href="/article/1581758.html" > <img src="https://staticm.elecfans.com/images/rar.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/1581758.html"><h4>汽车<span style='color: #FF6600'>驱动</span><span style='color: #FF6600'>系统</span>的CAN总线设计</h4></a> <span>2021-04-20</span> <span>44次下载</span> </div> </div> <div> <a href="/article/1581758.html">下载</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="detail-down-img fl" > <a href="/article/1580798.html" > <img src="https://staticm.elecfans.com/images/rar.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/1580798.html"><h4>虚假在线<span style='color: #FF6600'>评论</span>信息识别研究综述</h4></a> <span>2021-04-19</span> <span>5次下载</span> </div> </div> <div> <a href="/article/1580798.html">下载</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="detail-down-img fl" > <a href="/article/1570376.html" > <img src="https://staticm.elecfans.com/images/pdf.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/1570376.html"><h4>联合<span style='color: #FF6600'>评论</span>文本层级注意力和外积的推荐方法</h4></a> <span>2021-04-12</span> <span>7次下载</span> </div> </div> <div> <a href="/article/1570376.html">下载</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="detail-down-img fl" > <a href="/article/1550033.html" > <img src="https://staticm.elecfans.com/images/rar.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/1550033.html"><h4>关于案件微博<span style='color: #FF6600'>评论</span>的情绪知识库和相关研究</h4></a> <span>2021-03-24</span> <span>3次下载</span> </div> </div> <div> <a href="/article/1550033.html">下载</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="detail-down-img fl" > <a href="/article/1534044.html" > <img src="https://staticm.elecfans.com/images/pdf.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/1534044.html"><h4>针对社交媒体的<span style='color: #FF6600'>评论</span>讽刺检测模型</h4></a> <span>2021-03-12</span> <span>5次下载</span> </div> </div> <div> <a href="/article/1534044.html">下载</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="detail-down-img fl" > <a href="/article/1514108.html" > <img src="https://staticm.elecfans.com/images/rar.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/1514108.html"><h4><span style='color: #FF6600'>github</span>上的pytorch学习资料详细说明</h4></a> <span>2021-02-25</span> <span>6次下载</span> </div> </div> <div> <a href="/article/1514108.html">下载</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="detail-down-img fl" > <a href="/article/1429114.html" > <img src="https://staticm.elecfans.com/images/pdf.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/1429114.html"><h4><span style='color: #FF6600'>GitHub</span>入门与实践的PDF电子书免费下载</h4></a> <span>2020-12-22</span> <span>6次下载</span> </div> </div> <div> <a href="/article/1429114.html">下载</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="detail-down-img fl" > <a href="/article/1367882.html" > <img src="https://staticm.elecfans.com/images/rar.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/1367882.html"><h4>怎么样实现电商平台商品<span style='color: #FF6600'>评论</span>可信性的自动评估</h4></a> <span>2020-11-04</span> <span>5次下载</span> </div> </div> <div> <a href="/article/1367882.html">下载</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="detail-down-img fl" > <a href="/article/1134010.html" > <img src="https://staticm.elecfans.com/images/pdf.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/1134010.html"><h4><span style='color: #FF6600'>GitHub</span>入门与实践PDF电子书免费下载</h4></a> <span>2019-12-12</span> <span>5次下载</span> </div> </div> <div> <a href="/article/1134010.html">下载</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="detail-down-img fl" > <a href="/article/1111797.html" > <img src="https://staticm.elecfans.com/images/rar.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/1111797.html"><h4>在线商品<span style='color: #FF6600'>评论</span>的可信程度如何使用大数据技术分析</h4></a> <span>2019-11-14</span> <span>5次下载</span> </div> </div> <div> <a href="/article/1111797.html">下载</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="detail-down-img fl" > <a href="/article/893292.html" > <img src="https://staticm.elecfans.com/images/rar.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/893292.html"><h4>在线商品<span style='color: #FF6600'>评论</span>可信性的评价方法详细资料说明</h4></a> <span>2019-03-27</span> <span>11次下载</span> </div> </div> <div> <a href="/article/893292.html">下载</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="detail-down-img fl" > <a href="/article/822232.html" > <img src="https://staticm.elecfans.com/images/rar.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/822232.html"><h4>如何使用词典和弱标注信息进行电影的<span style='color: #FF6600'>评论</span>情感分析</h4></a> <span>2018-11-27</span> <span>4次下载</span> </div> </div> <div> <a href="/article/822232.html">下载</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="detail-down-img fl" > <a href="/article/605587.html" > <img src="https://staticm.elecfans.com/images/rar.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/605587.html"><h4>基于CD-RBM深度学习的产品<span style='color: #FF6600'>评论</span>情感分析</h4></a> <span>2017-12-20</span> <span>2次下载</span> </div> </div> <div> <a href="/article/605587.html">下载</a> </div> </li> </ul> <ul class="detail-dowm-list detail-dowm-list-box clearfix" style="display:none;"> <li class="clearfix "> <div class="clearfix "> <div class="fl detail-down-text"> <a href="/article/4532090.html"><h4><span style='color: #FF6600'>GitHub</span>推出<span style='color: #FF6600'>GitHub</span> Models服务,赋能开发者智能选择AI模型</h4></a> <span>2024-08-02</span> </div> </div> <div> <a class="click_style" href="javascript:;"><i></i>506</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="fl detail-down-text"> <a href="/article/2739340.html"><h4><span style='color: #FF6600'>GitHub</span>存在高危漏洞,黑客可利用进行恶意软件分发</h4></a> <span>2024-04-23</span> </div> </div> <div> <a class="click_style" href="javascript:;"><i></i>608</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="fl detail-down-text"> <a href="/article/2308068.html"><h4><span style='color: #FF6600'>GitHub</span> Universe 2023:副驾之力,跃上 AI <span style='color: #FF6600'>驱动</span>的开发者平台</h4></a> <span>2023-11-09</span> </div> </div> <div> <a class="click_style" href="javascript:;"><i></i>755</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="fl detail-down-text"> <a href="/article/2307749.html"><h4>重塑<span style='color: #FF6600'>GitHub</span>、颠覆程序开发:<span style='color: #FF6600'>GitHub</span> Universe 2023发布重大更新</h4></a> <span>2023-11-09</span> </div> </div> <div> <a class="click_style" href="javascript:;"><i></i>737</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="fl detail-down-text"> <a href="/article/2256241.html"><h4>如何使用<span style='color: #FF6600'>Github</span>高效率的查找项目</h4></a> <span>2023-09-24</span> </div> </div> <div> <a class="click_style" href="javascript:;"><i></i>647</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="fl detail-down-text"> <a href="/article/2220946.html"><h4>如何获取和使用<span style='color: #FF6600'>Github</span>上的Vitis开放资源</h4></a> <span>2023-08-23</span> </div> </div> <div> <a class="click_style" href="javascript:;"><i></i>991</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="fl detail-down-text"> <a href="/article/2212783.html"><h4>如何提高<span style='color: #FF6600'>github</span>访问速度</h4></a> <span>2023-08-15</span> </div> </div> <div> <a class="click_style" href="javascript:;"><i></i>646</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="fl detail-down-text"> <a href="/article/2201956.html"><h4>如何本地运行和测试<span style='color: #FF6600'>Github</span> Actions?</h4></a> <span>2023-08-02</span> </div> </div> <div> <a class="click_style" href="javascript:;"><i></i>2464</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="fl detail-down-text"> <a href="/article/2095027.html"><h4>RT-Thread中的<span style='color: #FF6600'>Github</span> Actions</h4></a> <span>2023-06-01</span> </div> </div> <div> <a class="click_style" href="javascript:;"><i></i>655</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="fl detail-down-text"> <a href="/article/1979691.html"><h4>MarkDown文件插入图片并上传<span style='color: #FF6600'>GitHub</span></h4></a> <span>2023-01-12</span> </div> </div> <div> <a class="click_style" href="javascript:;"><i></i>1002</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="fl detail-down-text"> <a href="/article/1977067.html"><h4><span style='color: #FF6600'>GitHub</span>的使用</h4></a> <span>2023-01-10</span> </div> </div> <div> <a class="click_style" href="javascript:;"><i></i>1044</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="fl detail-down-text"> <a href="/article/1925894.html"><h4>上传本地项目代码到<span style='color: #FF6600'>github</span></h4></a> <span>2022-11-14</span> </div> </div> <div> <a class="click_style" href="javascript:;"><i></i>1040</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="fl detail-down-text"> <a href="/article/1847559.html"><h4>提高访问<span style='color: #FF6600'>Github</span>过慢的方法</h4></a> <span>2022-06-13</span> </div> </div> <div> <a class="click_style" href="javascript:;"><i></i>1997</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="fl detail-down-text"> <a href="/article/1566942.html"><h4>如何获取和使用<span style='color: #FF6600'>Github</span>上的开放资源</h4></a> <span>2021-04-09</span> </div> </div> <div> <a class="click_style" href="javascript:;"><i></i>3477</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="fl detail-down-text"> <a href="/article/1470506.html"><h4>深度操作<span style='color: #FF6600'>系统</span>deepin 文档目录已上线 <span style='color: #FF6600'>GitHub</span></h4></a> <span>2021-01-19</span> </div> </div> <div> <a class="click_style" href="javascript:;"><i></i>2412</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="fl detail-down-text"> <a href="/article/1354807.html"><h4>了解Git和<span style='color: #FF6600'>Github</span></h4></a> <span>2020-10-30</span> </div> </div> <div> <a class="click_style" href="javascript:;"><i></i>2409</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="fl detail-down-text"> <a href="/article/1311412.html"><h4>干货:如何定制自己的 <span style='color: #FF6600'>GitHub</span> 首页</h4></a> <span>2020-10-08</span> </div> </div> <div> <a class="click_style" href="javascript:;"><i></i>2881</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="fl detail-down-text"> <a href="/article/1319108.html"><h4>九招教你提高国内访问<span style='color: #FF6600'>GitHub</span>速度</h4></a> <span>2020-09-29</span> </div> </div> <div> <a class="click_style" href="javascript:;"><i></i>2021</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="fl detail-down-text"> <a href="/article/1203752.html"><h4><span style='color: #FF6600'>GitHub</span>宣布开放无限私有存储库以及限时访问<span style='color: #FF6600'>GitHub</span> Actions</h4></a> <span>2020-04-15</span> </div> </div> <div> <a class="click_style" href="javascript:;"><i></i>3565</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="fl detail-down-text"> <a href="/article/1189170.html"><h4><span style='color: #FF6600'>GitHub</span>无故封禁开源项目引网友不满 都是开源代码受管制惹的祸?</h4></a> <span>2020-03-24</span> </div> </div> <div> <a class="click_style" href="javascript:;"><i></i>3922</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="fl detail-down-text"> <a href="/article/1008112.html"><h4><span style='color: #FF6600'>GitHub</span>回应托管代码受限</h4></a> <span>2019-07-31</span> </div> </div> <div> <a class="click_style" href="javascript:;"><i></i>2472</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="fl detail-down-text"> <a href="/article/884370.html"><h4>快手刷<span style='color: #FF6600'>评论</span>的作用是什么?</h4></a> <span>2019-03-13</span> </div> </div> <div> <a class="click_style" href="javascript:;"><i></i>9839</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="fl detail-down-text"> <a href="/article/877791.html"><h4><span style='color: #FF6600'>GitHub</span>搜索代码的操作步骤</h4></a> <span>2019-03-02</span> </div> </div> <div> <a class="click_style" href="javascript:;"><i></i>5383</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="fl detail-down-text"> <a href="/article/861037.html"><h4><span style='color: #FF6600'>GitHub</span>宣布将无限制地开放私有代码库</h4></a> <span>2019-01-29</span> </div> </div> <div> <a class="click_style" href="javascript:;"><i></i>2608</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="fl detail-down-text"> <a href="/article/808499.html"><h4><span style='color: #FF6600'>GitHub</span>发布史上最大更新</h4></a> <span>2018-11-03</span> </div> </div> <div> <a class="click_style" href="javascript:;"><i></i>4582</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="fl detail-down-text"> <a href="/article/481945.html"><h4>来自<span style='color: #FF6600'>GitHub</span>的安全威胁应该如何应对</h4></a> <span>2018-05-14</span> </div> </div> <div> <a class="click_style" href="javascript:;"><i></i>1127</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="fl detail-down-text"> <a href="/article/588929.html"><h4><span style='color: #FF6600'>github</span>上有些什么好玩的项目_<span style='color: #FF6600'>github</span>开源项目排名</h4></a> <span>2017-11-29</span> </div> </div> <div> <a class="click_style" href="javascript:;"><i></i>24168</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="fl detail-down-text"> <a href="/article/588910.html"><h4><span style='color: #FF6600'>github</span>使用教程_<span style='color: #FF6600'>github</span>菜鸟教程</h4></a> <span>2017-11-29</span> </div> </div> <div> <a class="click_style" href="javascript:;"><i></i>14851</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="fl detail-down-text"> <a href="/article/588896.html"><h4><span style='color: #FF6600'>github</span>与社会化编程</h4></a> <span>2017-11-29</span> </div> </div> <div> <a class="click_style" href="javascript:;"><i></i>943</a> </div> </li><li class="clearfix "> <div class="clearfix "> <div class="fl detail-down-text"> <a href="/article/588830.html"><h4><span style='color: #FF6600'>github</span>是什么_<span style='color: #FF6600'>github</span>有什么用</h4></a> <span>2017-11-29</span> </div> </div> <div> <a class="click_style" href="javascript:;"><i></i>20732</a> </div> </li> </ul> </section> <!-- 下载排行榜 --> <section class="detail-container detail-dowm-box scroll_height5"> <h3>下载排行榜</h3> <ul class="detail-dowm-list clearfix" id="detail-dowm-list0"> <li class="clearfix " > <div class="clearfix "> <div class="detail-down-img fl"> <a href="/article/1834079.html"> <img src="https://staticm.elecfans.com/images/pdf.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/1834079.html"><h4 >XL4015+LM358恒压恒流电路图</h4></a> <span>2024-11-08</span> <span>144次下载</span> </div> </div> <div> <a href="/article/1834079.html">下载</a> </div> </li><li class="clearfix " > <div class="clearfix "> <div class="detail-down-img fl"> <a href="/article/1167111.html"> <img src="https://staticm.elecfans.com/images/pdf.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/1167111.html"><h4 >新概念模拟电路第四册信号处理电路电子书免费下载</h4></a> <span>2024-10-24</span> <span>60次下载</span> </div> </div> <div> <a href="/article/1167111.html">下载</a> </div> </li><li class="clearfix " > <div class="clearfix "> <div class="detail-down-img fl"> <a href="/article/6341075.html"> <img src="https://staticm.elecfans.com/images/pdf.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/6341075.html"><h4 >PCB布线和布局电路设计规则</h4></a> <span>2024-11-09</span> <span>11次下载</span> </div> </div> <div> <a href="/article/6341075.html">下载</a> </div> </li><li class="clearfix " > <div class="clearfix "> <div class="detail-down-img fl"> <a href="/article/6284023.html"> <img src="https://staticm.elecfans.com/images/pdf.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/6284023.html"><h4 >JESD79-5C_v1.30-2024 内存技术规范</h4></a> <span>2024-10-28</span> <span>10次下载</span> </div> </div> <div> <a href="/article/6284023.html">下载</a> </div> </li><li class="clearfix " > <div class="clearfix "> <div class="detail-down-img fl"> <a href="/article/1989877.html"> <img src="https://staticm.elecfans.com/images/pdf.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/1989877.html"><h4 >elmo直线电机驱动调试细则</h4></a> <span>2024-11-04</span> <span>9次下载</span> </div> </div> <div> <a href="/article/1989877.html">下载</a> </div> </li><li class="clearfix " > <div class="clearfix "> <div class="detail-down-img fl"> <a href="/article/6172605.html"> <img src="https://staticm.elecfans.com/images/pdf.png"> </a> </div> <div class="fl detail-down-text"> <a href="/article/6172605.html"><h4 >使用BQ76PL102系列电量计进行BQ78PL114的快速入门指南</h4></a> <span>2024-10-17</span> <span>7次下载</span> </div> </div> <div> <a href="/article/6172605.html">下载</a> </div> </li> </ul> </section> <footer class="m-footer"> <div class="footer-logo"> <img src="https://staticm.elecfans.com/images/bottom-weixin.gif"> </div> <div class="go-other"> <a href="https://www.elecfans.com/app/download.html" style="font-size: 0.3rem;">客户端</a> </div> <div class="copyright"> <p style="font-size:0.24rem;line-height: 0.36rem;">©2021 elecfans.com.All Right Reserved</p> <p style="font-size:0.24rem"><a target="_blank" href="https://beian.miit.gov.cn" rel="nofollow">湘ICP备2023018690号</a></p> </div> </footer> </section> <!-- 全部评论 --> <div class="all-comment comment"> <div class="all-comment-content"> <div class="all-com-close flex"> <p class="ph">全部<i id="comment_num">0</i>条评论</p> <span class="close_com"></span> <!-- <span class="edit_com">写评论</span> --> </div> <div class="all_words comment_content" id="all_words"> <div id="scroller"></div> </div> <div class="all_no_comment" class="hide"> <img src="https://staticm.elecfans.com/images/newdetail/all_no_bg.png" alt=""> <p>快来发表一下你的评论吧 !</p> </div> </div> <div class="ft"> <input type="text" placeholder="发评论" maxlength="10000"> <button>发送</button> </div> </div> <input type="hidden" id="column-type-img" value=""> <input type="hidden" id="current_url" value=""> <input type="hidden" id="uname" value=""> <input type="hidden" id="title" value="giscus GitHub Discussions驱动的评论系统"> <input type="hidden" id="pc_domain" value=""> <input type="hidden" id="static_path" value="https://staticm.elecfans.com"> <input type="hidden" id="aid" value="1846695"> <input type="hidden" id="filetype" value="zip"> <input type="hidden" id="pid" value=""> <input type="hidden" id="uid" data-uid="0"> <!--二维码--> <img src="" alt="" id="qrious" style="display: none;"> <!-- 评论 --> <footer class="art_footer flex"> <img src="https://staticm.elecfans.com/images/newdetail/sofa.png" class="sofa" alt="" style="display: block;"> <input type="text" placeholder="发评论" maxlength="10000" id="commentTxt"> <div class="flex"> <span class="ft_comment" data-com="发评论"> <i class="sups" > 0 </i> </if> </span> <span class="ft_star "> </span> <span class="ft_share btn-createCover"></span> </div> </footer> <div class="aside_right"> <a href="/vip/" target="_self"> </a> </div> <!--老的底部 隐藏 --> <a href="#header" class="go_top"> <img src="https://staticm.elecfans.com/images/icon_top.png" alt=""> </a> <!--<div class="foot-fixed" id="foot-fixed"> <span class="foot-fixlogo"> <img alt="电子发烧友网" src="https://staticm.elecfans.com/images/ele-logo.png"> </span> <span class="foot-fixmsg">更多精彩内容请下载APP</span> <a href="https://www.elecfans.com/app/download.html" class="foot-dwnapp" target="_blank" id="foot-dwnapp-click">立即下载</a> </div>--> <!--<div class="foot-fixed" id="foot-fixed-wx" style="display:none;"> <span class="foot-fixlogo"> <img alt="电子发烧友网" src="https://staticm.elecfans.com/images/ele-logo.png"> </span> <span class="foot-fixmsg">更多精彩内容请关注发烧友微信</span> <img class="foot-wx-small" id="foot-img-wx-small" src="https://staticm.elecfans.com/images/wx-follow-small.png" /> </div>--> <div id="body-wx-big"> <img src="https://staticm.elecfans.com/images/wx-follow-small.png" style="display:none;"> </div> <input type="hidden" id="eac_typeid" value="296" /> <script src="https://staticm.elecfans.com/js/jquery-1.8.3.min.js"></script> <script> /** * 判断是否微信浏览器 * @return {Boolean} [description] */ function is_weixin() { var ua = navigator.userAgent.toLowerCase(); if(ua.match(/MicroMessenger/i)=="micromessenger") { return true; } else { return false; } } $(function(){ /* * 添加标签分类 * */ var getHref=window.location.href; if(getHref.indexOf('fromtype=app')>0){ $(".comments-wrap .ui-btn-red").attr('href','https://www.elecfans.com/app/download.html'); } if($('.go_top').length==0){ var img_src_dir= "https://s1.jmstatic.com/templates/touch/css"; $('body').append('<a href="#" class="go_top"><img src="https://staticm.elecfans.com/images/icon_top.png?v=10" alt=""></a>'); } $(window).scroll(function(e){ var window_w=window.innerWidth|| document.documentElement.clientWidth|| document.body.clientWidth; var window_h=window.innerHeight|| document.documentElement.clientHeight|| document.body.clientHeight; if(document.body.scrollTop+document.documentElement.scrollTop>window_h*2){ $('.go_top').show(); } else{ $('.go_top').hide(); } }); $('.go_top').on('click', function(){ document.body.scrollTop = 0; document.documentElement.scrollTop = 0; return false; }); // 添加广告链接的Google Analytics事件跟踪 $('a').on('click', function(){ var href = $(this).attr('href'); var bannerArr = href.match(/__bannerid=(\d+)__/); var zoneidArr = href.match(/__zoneid=(\d+)__/); if ((bannerArr instanceof Array) && bannerArr.length == 2) { var bannerid = bannerArr[1]; var zoneid = zoneidArr[1]; ga('send', 'event', 'mElecfansAd', 'click', 'zoneid:'+zoneid+',bannerid: '+bannerid, 1); gtag('event', 'mElecfansAd', { 'zoneid': zoneid, 'bannerid': 'bannerid', 'describe': 'click' }); } }); // 微信浏览器底部显示关注微信 /* if (is_weixin()) { $('#foot-fixed').hide(); $('#foot-fixed-wx').show(); }*/ $('#foot-img-wx-small').click(function(){ $('#body-wx-big img').toggle(); }); }); // 路障广告***************************************/ $(function(){ var showTdkAd=function(){ var docHeight = $(document).height(),docWidth = $(document).width(); var setStyle= '<style type="text/css">'+ '/*2015-07-20 tdk弹窗广告*/'+ '#fix-tdkad{position: fixed;box-shadow:0px 0px 24px rgba(0,0,0,.9);border-radius:25px;z-index: 99999;width: 640px;height: 480px;top: 50%;left: 50%;margin:-240px 0 0 -320px;-webkit-transform:scale(0.4)}'+ '#fix-tdkad iframe{overflow:hidden;border-radius:25px;}'+ '#tdk-close{ cursor: pointer; width:80px; height:80px; position: absolute; display: block; text-align:center; line-height:80px;font-size:60px; right: -40px; top: -40px; border-radius:50%;background:rgba(0,0,0,.5);color:#fff}'+ '#road-block-bg {content:""; z-index:99998;position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.5) }'+ '</style>' ; $('body').append(setStyle+'<div id="fix-tdkad"><iframe width="100%" height="100%" frameborder="0" src="https://www1.elecfans.com/www/delivery/myafr.php?target=_blank&cb=0.8775979285112017&zoneid=682" scrolling="no"></iframe><span id="tdk-close" title="点击关闭">×</span></div>'); } // 关闭路障广告 var closeTdkAd=function(){ if($('#fix-tdkad').length){ $('#fix-tdkad').animate({ "opacity" : 0 }, 500, function(){ $('#fix-tdkad').remove(); $('#road-block-bg').hide(); }); } } // cookie 设置函数 $.extend({ cookieHelper: function(name, value, options) { if (typeof value != 'undefined') { // name and value given, set cookie options = options || {}; if (value === null) { value = ''; options.expires = -1; } var expires = ''; if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) { var date; if (typeof options.expires == 'number') { date = new Date(); date.setTime(date.getTime() + (options.expires * 60 * 60 * 1000)); } else { date = options.expires; } expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE } var path = options.path ? '; path=' + options.path : ''; var domain = options.domain ? '; domain=' + options.domain : ''; var secure = options.secure ? '; secure' : ''; document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join(''); } else { // only name given, get cookie var cookieValue = null; if (document.cookie && document.cookie != '') { var cookies = document.cookie.split(';'); for (var i = 0; i < cookies.length; i++) { var cookie = jQuery.trim(cookies[i]); // Does this cookie string begin with the name we want? if (cookie.substring(0, name.length + 1) == (name + '=')) { cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); break; } } } return cookieValue; } } }); if($.cookieHelper("tdkad") !== "yes"){ var domain_mwww = location.host; var domain_www = domain_mwww.replace(/m1?\.elecfans/, 'www.elecfans'); $.ajax({ type:'GET', url: 'https://' + domain_www + '/webapi/advertisement/roadblock', data: {site_name:'mwww', format:'jsonp'}, dataType:'jsonp', success: function(response) { if (response.error_code != 0) { return false; } var data = response.data; $.cookieHelper("tdkad", "yes", {expires:data.frequency,path:"/"}); showTdkAd(); setTimeout(function(){closeTdkAd();}, 30000); } }); } $(document).on("click", "#tdk-close", function(){ closeTdkAd(); }); }); </script> <script> if(!is_weixin()){ var id = "1846695"; $('#foot-dwnapp-click').attr('href','JavaScript:void(0)'); if(document.getElementById('foot-dwnapp-click')){ document.getElementById('foot-dwnapp-click').onclick = function(e){  if (navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)) {   var loadDateTime = new Date();   window.setTimeout(function() {    var timeOutDateTime = new Date();    if (timeOutDateTime - loadDateTime < 5000) {      window.location = "https://www.elecfans.com/app/";    } else {      window.close();    }   },3000); window.location = "elecfans://?id="+id;  } else if (navigator.userAgent.match(/android/i)) { window.location.href = "elecfans://?id="+id;//android app协议 window.setTimeout(function() { window.location.href = "https://www.elecfans.com/app/"; }, 2000)  } }; } } /*添加优惠券推广入口*/ /*setTimeout(function(){ (function($){ function getCookie(name) { var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)"); if(arr=document.cookie.match(reg)) return unescape(arr[2]); else return null; } var getCounponCook = getCookie('couponAd'); $("body").append('<div id="couMark" style="width: 100%;height: 100%;display:none;background-color: rgba(0,0,0,.5);position: fixed;top: 0px;left: 0px;z-index: 77777;"></div>' + '<div id="coupon-ad" style="cursor:pointer;width: 267px;display:none;height: 328px;position: fixed;left: 50%;top: 50%;margin-left: -120px;z-index: 78888;margin-top: -164px;">'+ '<div style="position: relative"><a id="couponClose" style="position: absolute;display: block;width: 24px;height: 24px;right: 0px;top: 0px;z-index: 2;"></a>' + '<a id="couponClose2" style="position: absolute;display: block;width: 66px;height: 20px;left: 24px;top: 287px;z-index: 2;"></a>' + '<a href="https://www.elecfans.com/app/download.html" style="position: absolute;display: block;width: 128px;height: 39px;left: 102px;top: 277px;z-index: 2;"></a></div>'+ '<img src="/Public/images/coupon_live.png" style="width: 100%;"/>'+ '</div><div id="couponAdBox" style="display:none;position: fixed;width: 240px;height: 320px;top: 50%;left: 50%;margin-left: -120px;margin-top: -160px;">' + '<div style="position: relative;"><a id="cAdBoxClose" style="position: absolute;display: block;width: 16px;height: 16px;top: 11px;right: 11px;"></a></div>'+ '<img src="/static/image/ad/coupon_01.png" style="width: 100%;"></div>'); setTimeout(function(){ if(getCounponCook==1||$("#log-tip1").length>0){ $("#coupon-ad").remove(); $("#couMark").remove(); }else{ $("#coupon-ad").show(); $("#couMark").show(); } },20) $("#coupon-ad").click(function(){ $("#couponAdBox").show(); $("#couMark").show(); $(this).remove(); }); $("#couponClose,#couponClose2").click(function(e){ e.stopPropagation(); var Days = 1; var exp = new Date(); exp.setTime(exp.getTime() + Days*24*60*60*1000); document.cookie = 'couponAd' + "="+ '1' + ";expires=" + exp.toGMTString(); $("#coupon-ad").hide(); $("#couMark").hide(); }); $("#couponAdBox").click(function(){ window.location.href="https://www.elecfans.com/app/download.html"; }); $("#cAdBoxClose").click(function(e){ e.stopPropagation(); $("#couponAdBox").remove(); $("#couMark").remove(); }); })(jQuery); },200);*/ </script> <!-- 是企业号文章 store_flag =15 --> <input type="hidden" id="store_flag" value="17"> <input type="hidden" id="evip_id" value=""> <input type="hidden" id="channel" value="3"> <!-- gt6Month 0 标识完善信息的时间没有超过六个月 1完善信息的时间超过6个月 --> <input type="hidden" id="gt6Month" value="1"> <script type="text/javascript" src="https://staticm.elecfans.com/js/jquery-1.8.3.min.js" defer></script> <script type="text/javascript" src="https://staticm.elecfans.com/js/jquery.validate.js" defer></script> <script type="text/javascript" src="https://staticm.elecfans.com/js/layer.js?v=20240612" defer></script> <script type="text/javascript" src="https://staticm.elecfans.com/js/createCover.js?v=20240612"></script> <script type="text/javascript" src="https://staticm.elecfans.com/js/qrious.min.js?v=20240612"></script> <script type="text/javascript" src="https://staticm.elecfans.com/js/iscroll.min.js?v=20240612"></script> <script type="text/javascript" src="https://staticm.elecfans.com/js/detailComment.js?v=20240612"></script> <script type="text/javascript" src="https://staticm.elecfans.com/js/ad.js?v=20240612"></script> <script type="text/javascript" src="https://staticm.elecfans.com/organizing/js/organizing.js?v=20240612"></script> <script type="text/javascript" src="https://staticm.elecfans.com/js/analysisForm.js?v=20240612" defer></script> <script type="text/javascript"> if($("#store_flag").val() == 15){ $.get('/home/evip/getFollowEvip?evip_id=' + $("#evip_id").val(), function (res) { if (res.code == 0) { var is_follow = res.data.is_follow; if (is_follow == 1) { //已关注 $(".column_attend").text('已关注'); } else { $(".column_attend").text('+关注'); } } }) } //资料图片出现text-indet导致图片超出处理 doImgStyle() function doImgStyle(){ var oImg = $("#detail-content img") if(oImg.length>0){ $.each(oImg,function(index,ele){ var txtInt = parseInt($(ele).parent().css("textIndent")); if(txtInt>0){ $(ele).parent().css("textIndent","0em") } }) } } //判断页面是不是pc端窗口打开 if ((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iOS|iPad|Backerry|WebOS|Symbian|Windows Phone|Phone)/i))) { console.log("手机访问") } else { //电脑展示显示html为800px $('html').css({width:"800px",margin:"0 auto",fontSize:"106.66px",overflowX:"hidden"}) $('.art_footer').css({width:"800px",left:"50%",marginLeft:"-400px"}); }; var islogin = false; // 查看企业号是否完善个人信息 var is_Complete = false if($("#store_flag").val() == 15){ $.get('/home/Sms/checkCompleteInfo?aid='+$("#webID").val() ,function(data){ if(data.code == 200){ is_Complete = data.data.is_Complete $("#gt6Month").val(data.data.gt6Month) } }); } $(function(){ // 优酷视频自适应 $('.ykvideo').height(parseInt($('.ykvideo').width() * 0.8)); //打开app $('.open_app button,.open_app_btn').click(function (event) { /* Act on the event */ window.open("https://yingsheng.elecfans.com/download.html?from=elec_h5") }); }); $(function(){ // vip过期信息 var vipExpiredInfo = { ifVipExpired: false, vipExpiredDate: "" } $.get('/login/checklogin',function(data){ if (data.error_code > 0) { $('#login-tip').show(); islogin = false; } else { islogin = true; } }); var webid = $("#webID").val(); var ElecfansApi_arcinfo = 'https://www.elecfans.com/webapi/arcinfo'; //文档详细信息接口 //获取收藏数,评论数,下载次数----------------------------------------------------------- function GetNum(){ $.get('/api/infonum/aid/'+webid,function(data){ var num = data.data; $("#J_Download-times").html(num.downnum);//下载次数 }); } GetNum(); /*判断是否微信浏览器*/ function is_weixin() { var ua = navigator.userAgent.toLowerCase(); if(ua.match(/MicroMessenger/i)=="micromessenger") { return true; } else { return false; } } $("#download").click(function(){ var pop_this=this; if(!!is_weixin()){ layer.open({ content: '<div>请点击微信右上角"...",使用浏览器打<p>开并下载该资料</p></div>', btn: ['知道了'], yes: function (index) { layer.close(index); } }); return false; } if (islogin) { var down_url = $(this).attr('data-url'); isBindAnalysisForm(pop_this, down_url, 0) } else { $(this).attr('href',"/login/index.html"); } }); $("#collect").click(function(){ $.get('/article/joinstow/aid/'+webid,function(data){ if (data.error_code == 0) { alert('收藏成功') } else { alert(data.msg) } }); }) /** * 普通下载 */ var flagNormalDownload = true; $('#vipdownload').on('click',function(){ if(vipExpiredInfo.ifVipExpired) { showVipExpiredDialog(vipExpiredInfo.vipExpiredDate) return false; } var pop_this=this var htmlSetNormalDownload = $( '<div id="dialog">'+ '<span id="covered" ></span>'+ '<div id="poplayer" >'+ '<div class="download_tips">'+ '<title>下载提示'+ '

'+ '

'+ '
'+ '
'+ ''+ ''+ '
'+ '
'+ '
' ); $.get('/article/vipdownload/aid/'+webid,function(data){ if(data.code ==5){ $(pop_this).attr('href',"/login/index.html"); return false } if(data.code == 2){ //跳转到VIP升级页面 window.location.href="https://m.elecfans.com/vip/index?aid=" + webid return false } //是会员 if (data.code > 0) { $('body').append(htmlSetNormalDownload); var getWidth=$("#poplayer").width(); $("#poplayer").css("margin-left","-"+getWidth/2+"px"); $('#tips').html(data.msg) $('.download_confirm').click(function(){ $('#dialog').remove(); }) } else { var down_url = $('#vipdownload').attr('data-url'); isBindAnalysisForm(pop_this, down_url, 1) } }); }); //是否开通VIP $.get('/article/vipdownload/aid/'+webid,function(data){ if(data.code == 2 || data.code ==5){ //跳转到VIP升级页面 $('#vipdownload>span').text("开通VIP 免费下载") return false }else{ // 待续费 if(data.code == 3) { vipExpiredInfo.ifVipExpired = true vipExpiredInfo.vipExpiredDate = data.data.endoftime } $('#vipdownload .icon-vip-tips').remove() $('#vipdownload>span').text("VIP免积分下载") } }); }).on("click",".download_cancel",function(){ $('#dialog').remove(); }) var setWeixinShare={};//定义默认的微信分享信息,页面如果要自定义分享,直接更改此变量即可 if(window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i) == 'micromessenger'){ var d={ title:'giscus GitHub Discussions驱动的评论系统',//标题 desc:$('[name=description]').attr("content"), //描述 imgUrl:'https://'+location.host+'/static/images/ele-logo.png',// 分享图标,默认是logo link:'',//链接 type:'',// 分享类型,music、video或link,不填默认为link dataUrl:'',//如果type是music或video,则要提供数据链接,默认为空 success:'', // 用户确认分享后执行的回调函数 cancel:''// 用户取消分享后执行的回调函数 } setWeixinShare=$.extend(d,setWeixinShare); $.ajax({ url:"https://www.elecfans.com/app/wechat/index.php?s=Home/ShareConfig/index", data:"share_url="+encodeURIComponent(location.href)+"&format=jsonp&domain=m", type:'get', dataType:'jsonp', success:function(res){ if(res.status!="successed"){ return false; } $.getScript('https://res.wx.qq.com/open/js/jweixin-1.0.0.js',function(result,status){ if(status!="success"){ return false; } var getWxCfg=res.data; wx.config({ //debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 appId:getWxCfg.appId, // 必填,公众号的唯一标识 timestamp:getWxCfg.timestamp, // 必填,生成签名的时间戳 nonceStr:getWxCfg.nonceStr, // 必填,生成签名的随机串 signature:getWxCfg.signature,// 必填,签名,见附录1 jsApiList:['onMenuShareTimeline','onMenuShareAppMessage','onMenuShareQQ','onMenuShareWeibo','onMenuShareQZone'] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2 }); wx.ready(function(){ //获取“分享到朋友圈”按钮点击状态及自定义分享内容接口 wx.onMenuShareTimeline({ title: setWeixinShare.title, // 分享标题 link: setWeixinShare.link, // 分享链接 imgUrl: setWeixinShare.imgUrl, // 分享图标 success: function () { setWeixinShare.success; // 用户确认分享后执行的回调函数 }, cancel: function () { setWeixinShare.cancel; // 用户取消分享后执行的回调函数 } }); //获取“分享给朋友”按钮点击状态及自定义分享内容接口 wx.onMenuShareAppMessage({ title: setWeixinShare.title, // 分享标题 desc: setWeixinShare.desc, // 分享描述 link: setWeixinShare.link, // 分享链接 imgUrl: setWeixinShare.imgUrl, // 分享图标 type: setWeixinShare.type, // 分享类型,music、video或link,不填默认为link dataUrl: setWeixinShare.dataUrl, // 如果type是music或video,则要提供数据链接,默认为空 success: function () { setWeixinShare.success; // 用户确认分享后执行的回调函数 }, cancel: function () { setWeixinShare.cancel; // 用户取消分享后执行的回调函数 } }); //获取“分享到QQ”按钮点击状态及自定义分享内容接口 wx.onMenuShareQQ({ title: setWeixinShare.title, // 分享标题 desc: setWeixinShare.desc, // 分享描述 link: setWeixinShare.link, // 分享链接 imgUrl: setWeixinShare.imgUrl, // 分享图标 success: function () { setWeixinShare.success; // 用户确认分享后执行的回调函数 }, cancel: function () { setWeixinShare.cancel; // 用户取消分享后执行的回调函数 } }); //获取“分享到腾讯微博”按钮点击状态及自定义分享内容接口 wx.onMenuShareWeibo({ title: setWeixinShare.title, // 分享标题 desc: setWeixinShare.desc, // 分享描述 link: setWeixinShare.link, // 分享链接 imgUrl: setWeixinShare.imgUrl, // 分享图标 success: function () { setWeixinShare.success; // 用户确认分享后执行的回调函数 }, cancel: function () { setWeixinShare.cancel; // 用户取消分享后执行的回调函数 } }); //获取“分享到QQ空间”按钮点击状态及自定义分享内容接口 wx.onMenuShareQZone({ title: setWeixinShare.title, // 分享标题 desc: setWeixinShare.desc, // 分享描述 link: setWeixinShare.link, // 分享链接 imgUrl: setWeixinShare.imgUrl, // 分享图标 success: function () { setWeixinShare.success; // 用户确认分享后执行的回调函数 }, cancel: function () { setWeixinShare.cancel; // 用户取消分享后执行的回调函数 } }); }); }); } }); } function openX_ad(posterid, htmlid, width, height) { if ($(htmlid).length > 0) { var randomnumber = Math.random(); var now_url = encodeURIComponent(window.location.href); var ga = document.createElement('iframe'); ga.src = 'https://www1.elecfans.com/www/delivery/myafr.php?target=_blank&cb=' + randomnumber + '&zoneid=' + posterid+'&prefer='+now_url; ga.width = width; ga.height = height; ga.frameBorder = 0; ga.scrolling = 'no'; var s = $(htmlid).append(ga); } } openX_ad(828, '#berry-300', 300, 250);