RT-thread有没有提供封装好http返回数据的解析方法

发布于 2019-09-24 19:52:16    浏览:726
1.png
我在使用webclint软件包,非常顺利的完成了get请求,但是返回的数据不知道RT-thread有没有提供封装好的解析方法,目前我就知道解析字符串:'(。
在论坛还没有类似的问题。请求指点

查看更多

6 个回答
CrisJay
CrisJay 认证专家 2019-09-24
This guy hasn't written anything yet
这个是页面数据吧,这样的话如果要解析应该也只能字符串操作了
beli
beli 2019-09-25
This guy hasn't written anything yet
CrisJay 发表于 2019-9-24 21:59
这个是页面数据吧,这样的话如果要解析应该也只能字符串操作了


那我先了解一下html的语法,看能不能冲标签入手
aozima
aozima 2019-09-25
拒绝白嫖,拒绝键盘侠!
所以 REST API 返回数据最好是针对单片机优化过的 JSON 数据
jamguo
jamguo 2019-09-25
This guy hasn't written anything yet
直接HTTPS请求的话 我都是直接字符搜 200 206 这样的来判断
CrisJay
CrisJay 认证专家 2019-09-25
This guy hasn't written anything yet
aozima 发表于 2019-9-25 09:18
所以 REST API 返回数据最好是针对单片机优化过的 JSON 数据


同意
beli
beli 2019-09-25
This guy hasn't written anything yet
我现在是这样做的:html基本文件结构如下:




呵呵








上述中的,之类的元素称之为标签。html文件中,标签分为两类。一为双标签格式为<name></name>,成对出现,前者为开始,后者为结束。如title/body/html都是这样的为单标签(又称空元素)就像meta,格式为<name>,没有结束标签<br/>目前按这个结构解析数据的。<br/>明天使用post,RTT有CJSON软件包,到时候有问题再来请教各位老板。:lol</div> </div> </div> <div class="comment-footer clearfix"> <div class="comment-toolbar"> <a href="javascript:" class="btn btn-light btn-vote " data-id="465984" data-type="answer" data-value="up" data-toggle="tooltip" data-title="回答对小伙伴有帮助"><i class="fa fa-caret-up"></i> 赞同 <span>0</span></a> <a href="javascript:" class="btn btn-light btn-vote " data-id="465984" data-type="answer" data-value="down" data-toggle="tooltip" data-title="答案是错误的,没有帮助"><i class="fa fa-caret-down"></i></a> <a href="javascript:" class="action btn-comment" data-type="answer" data-id="465984"><i class="fa fa-comment-o"></i> 添加回复</a> <a href="javascript:" class="btn btn-expand"><i class="fa fa-ellipsis-h"></i></a> <span class="expand"> <a href="javascript:" class="action btn-collection " data-id="465984" data-type="answer"><i class="fa fa-bookmark-o"></i> <span>收藏</span></a> <a href="javascript:" class="action btn-thanks" data-id="465984" data-type="answer" data-user-id="11146" data-user-url="/u/11146" data-user-nickname="beli" data-user-avatar="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgaGVpZ2h0PSIxMDAiIHdpZHRoPSIxMDAiPjxyZWN0IGZpbGw9InJnYigxNjAsMjAzLDIyOSkiIHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48L3JlY3Q+PHRleHQgeD0iNTAiIHk9IjUwIiBmb250LXNpemU9IjUwIiB0ZXh0LWNvcHk9ImZhc3QiIGZpbGw9IiNmZmZmZmYiIHRleHQtYW5jaG9yPSJtaWRkbGUiIHRleHQtcmlnaHRzPSJhZG1pbiIgZG9taW5hbnQtYmFzZWxpbmU9ImNlbnRyYWwiPkI8L3RleHQ+PC9zdmc+" data-toggle="popover" data-title="感谢" data-url="/addons/askrt/ajax/get_thanks_list.html"><i class="fa fa-heart-o"></i> <span>感谢</span></a> <a href="javascript:" class="action btn-report" data-id="465984" data-type="answer"><i class="fa fa-exclamation-triangle"></i> <span>举报</span></a> </span> </div> <div class="sub-comments collapsed"> </div> </div> </div> </div> <!-- E 回答列表 --> <!-- S 加载更多 --> <!-- E 加载更多 --> <!-- S 撰写答案 --> <div class="article-section"> <div id="post-comment"> <h3 class="mt-1 mb-2">撰写答案 </h3> <div class="alert alert-warning"> <i class="fa fa-info-circle"></i> 请登录后再发布答案,<a href="/index/user/login.html">点击登录</a> </div> <form action="/addons/askrt/answer/post.html" method="post" id="postanswer"> <input type="hidden" name="__token__" value="74aabb959ccb07ece995c2d8a6f5b1d5" /> <input type="hidden" name="type" value="question"> <input type="hidden" name="id" value="421969"> <div class="form-group"> <textarea name="content" class="form-control" data-rule="required" disabled data-autosave-key="post-answer-421969" id="answercontent" rows="15" placeholder="回答越详细准确,会更加容易被提问者采纳"></textarea> </div> <div id="peepsetting" class="alert mt-1 hidden" role="alert" style="background:rgba(0, 132, 255, 0.1);color:#444"> <h4 class="mt-1"> 付费查看:<!--积分--> </h4> <div class="mb-2 mt-1 hidden" data-type="price"> <div class="input-group"> <span class="input-group-addon">¥</span> <input type="number" step="0.01" name="price" class="form-control" placeholder="请输入付费查看的金额,金额区间:0.1-10"> <span class="input-group-btn"> <a class="btn btn-primary btn-clear" href="javascript:">清除</a> </span> </div> </div> <div class="mb-2 mt-1 " data-type="score"> <div class="input-group"> <span class="input-group-addon">积分</span> <input type="number" step="1" name="score" class="form-control" placeholder="请输入付费查看的积分,积分区间:10-100"> <span class="input-group-btn"> <a class="btn btn-primary btn-clear" href="javascript:">清除</a> </span> </div> </div> <div class="row mb-2 hidden" data-type="price"> <div class="col-xs-3"> <button type="button" class="btn btn-light btn-block btn-price" data-value="1">¥1</button> </div> <div class="col-xs-3"> <button type="button" class="btn btn-light btn-block btn-price" data-value="2">¥2</button> </div> <div class="col-xs-3"> <button type="button" class="btn btn-light btn-block btn-price" data-value="5">¥5</button> </div> <div class="col-xs-3"> <button type="button" class="btn btn-light btn-block btn-price" data-value="10">¥10</button> </div> </div> <div class="row mb-2 " data-type="score"> <div class="col-xs-3"> <button type="button" class="btn btn-light btn-block btn-price" data-value="10">10积分</button> </div> <div class="col-xs-3"> <button type="button" class="btn btn-light btn-block btn-price" data-value="20">20积分</button> </div> <div class="col-xs-3"> <button type="button" class="btn btn-light btn-block btn-price" data-value="50">50积分</button> </div> <div class="col-xs-3"> <button type="button" class="btn btn-light btn-block btn-price" data-value="100">100积分</button> </div> </div> <div class="peephelp"> 1. 如果设定了付费查看,则此回答只有提问者、回答者和管理员可以查看<br> 2. 如果提问者采纳了此回答,则付费查看生效(会员需要支付你设定的费用才能查看),如果采纳了其它答案,付费查看失效(此时全体可见)<br> 3. 如果提问者在 7 天后仍未采纳最佳答案,则所有付费查看失效(此时全体可见) </div> </div> <div class="row"> <div class="col-xs-8"> <div class="form-group"> <a href="/index/user/login.html" class="btn btn-primary">登录</a> <a href="/index/user/register.html" class="btn btn-light">注册新账号</a> </div> </div> <div class="col-xs-4 text-right"> <div class="checkbox my-1 hidden"> <label> <input name="subscribe" type="checkbox" class="checkbox" tabindex="7" checked="" value="1"> 有人回复时邮件通知我 </label> </div> </div> </div> </form> </div> </div> <!-- E 撰写答案 --> </div> <div class="col-md-4 col-sm-12"> <!-- S 问题统计 --> <div class="article-section row statistics withline"> <div class="col-xs-6"> <div class="statistics-text">关注者</div> <div class="statistics-nums">0</div> </div> <div class="col-xs-6"> <div class="statistics-text">被浏览</div> <div class="statistics-nums">726</div> </div> </div> <!-- E 问题统计 --> <div class="article-sidebar"> <!-- S 关于作者 --> <div class="panel panel-default about-author" data-id="11146" itemProp="author" itemscope="" itemType="http://schema.org/Person"> <meta itemProp="name" content="beli"/> <meta itemProp="image" content="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgaGVpZ2h0PSIxMDAiIHdpZHRoPSIxMDAiPjxyZWN0IGZpbGw9InJnYigxNjAsMjAzLDIyOSkiIHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48L3JlY3Q+PHRleHQgeD0iNTAiIHk9IjUwIiBmb250LXNpemU9IjUwIiB0ZXh0LWNvcHk9ImZhc3QiIGZpbGw9IiNmZmZmZmYiIHRleHQtYW5jaG9yPSJtaWRkbGUiIHRleHQtcmlnaHRzPSJhZG1pbiIgZG9taW5hbnQtYmFzZWxpbmU9ImNlbnRyYWwiPkI8L3RleHQ+PC9zdmc+"/> <meta itemProp="url" content="/u/11146"/> <div class="panel-heading"> <h3 class="panel-title">关于作者</h3> </div> <div class="panel-body"> <div class="media"> <div class="media-left"> <a href="/u/11146" data-toggle="popover" data-title="beli" data-placement="left" data-type="user" data-id="11146"> <img class="media-object img-circle img-medium" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgaGVpZ2h0PSIxMDAiIHdpZHRoPSIxMDAiPjxyZWN0IGZpbGw9InJnYigxNjAsMjAzLDIyOSkiIHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48L3JlY3Q+PHRleHQgeD0iNTAiIHk9IjUwIiBmb250LXNpemU9IjUwIiB0ZXh0LWNvcHk9ImZhc3QiIGZpbGw9IiNmZmZmZmYiIHRleHQtYW5jaG9yPSJtaWRkbGUiIHRleHQtcmlnaHRzPSJhZG1pbiIgZG9taW5hbnQtYmFzZWxpbmU9ImNlbnRyYWwiPkI8L3RleHQ+PC9zdmc+" data-holder-rendered="true"> </a> </div> <div class="media-body"> <h3 style="margin-top:10px;" class="media-heading"> <a href="/u/11146">beli</a> </h3> This guy hasn't written anything yet </div> </div> <div class="row statistics"> <div class="col-xs-4"> <div class="statistics-text">提问</div> <div class="statistics-nums"><a href="/u/11146/question">1</a></div> </div> <div class="col-xs-4"> <div class="statistics-text">回答</div> <div class="statistics-nums"><a href="/u/11146/answer">4</a></div> </div> <div class="col-xs-4"> <div class="statistics-text">被采纳</div> <div class="statistics-nums"><a href="/u/11146/answer?adopt=1">0</a></div> </div> </div> <div> <div class="col-xs-6"> <a href="javascript:;" class="btn btn-primary btn-block btn-attention " data-id="11146" data-type="user"><i class="fa fa-plus"></i> <span>关注TA</span></a> </div> <div class="col-xs-6"> <a href="javascript:;" class="btn btn-outline-primary btn-block btn-message" data-id="11146"><i class="fa fa-comments-o"></i> 发私信</a> </div> </div> </div> </div> <!-- E 关于作者 --> <!-- S 相关问题 --> <div class="panel panel-default hot-article"> <div class="panel-heading"> <h3 class="panel-title">相关问题</h3> </div> <div class="panel-body"> <div class="media media-number"> <div class="media-left"> <span class="num">1</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/question/3854.html" title="lwip1.4.1连接经常会断开无法连接上,可以ping通">lwip1.4.1连接经常会断开无法连接上,可以ping通</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">2</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/question/3863.html" title="LPC1768:RTT+LWIP+webserver用IE刷网页出现硬件中断错误(已经解决)">LPC1768:RTT+LWIP+webserver用IE刷网页出现硬件中断错误(已经解决)</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">3</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/question/3880.html" title="求一些LWIP开发的经验,目前ping一直不稳定。">求一些LWIP开发的经验,目前ping一直不稳定。</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">4</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/question/3934.html" title="stm32f207+dp83848无法ping通">stm32f207+dp83848无法ping通</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">5</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/question/3936.html" title="RTT下的LWIP传递机制">RTT下的LWIP传递机制</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">6</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/question/3942.html" title="rtt内lwip的socket是否是线程安全?">rtt内lwip的socket是否是线程安全?</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">7</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/question/3972.html" title="Lwip+enc28j60无法ping通">Lwip+enc28j60无法ping通</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">8</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/question/3988.html" title="坑爹的rtconfig.h lwip关掉了checksum">坑爹的rtconfig.h lwip关掉了checksum</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">9</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/question/3998.html" title="花了一个晚上,把RT2.0的LWIP、网卡驱动、文件系统整合起来了,发现一点小问题">花了一个晚上,把RT2.0的LWIP、网卡驱动、文件系统整合起来了,发现一点小问题</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">10</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/question/4005.html" title="lwip例程中udp发送时如何指定源端口发送到指定目的地端口">lwip例程中udp发送时如何指定源端口发送到指定目的地端口</a> </div> </div> </div> </div> <!-- E 相关问题 --> <!-- S 热门文章 --> <div class="panel panel-default recommend-article"> <div class="panel-heading"> <h3 class="panel-title">推荐文章</h3> </div> <div class="panel-body"> <div class="media media-number"> <div class="media-left"> <span class="num">1</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/article/2884.html" target="_blank" title="机器人操作系统 (ROS2) 和 RT-Thread 通信" title="机器人操作系统 (ROS2) 和 RT-Thread 通信">机器人操作系统 (ROS2) 和 RT-Thread 通信</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">2</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/article/2404.html" target="_blank" title="关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结" title="关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结">关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">3</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/article/2822.html" target="_blank" title="玩转RT-Thread系列教程" title="玩转RT-Thread系列教程">玩转RT-Thread系列教程</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">4</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/article/2501.html" target="_blank" title="【ART-PI】RT-Thread 开启RTC 与 Alarm组件" title="【ART-PI】RT-Thread 开启RTC 与 Alarm组件">【ART-PI】RT-Thread 开启RTC 与 Alarm组件</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">5</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/article/2858.html" target="_blank" title="STM32的“GPU”——DMA2D实例详解" title="STM32的“GPU”——DMA2D实例详解">STM32的“GPU”——DMA2D实例详解</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">6</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/article/2633.html" target="_blank" title="【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总" title="【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总">【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">7</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/article/2500.html" target="_blank" title="RT-Thread隐藏的宝藏之completion" title="RT-Thread隐藏的宝藏之completion">RT-Thread隐藏的宝藏之completion</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">8</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/article/2534.html" target="_blank" title="RT-Thread Studio使用记录(十)LittlevGL2RTT 贪吃蛇" title="RT-Thread Studio使用记录(十)LittlevGL2RTT 贪吃蛇">RT-Thread Studio使用记录(十)LittlevGL2RTT 贪吃蛇</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">9</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/article/2820.html" target="_blank" title="在 HK32F030 上移植 RT-Thread Nano" title="在 HK32F030 上移植 RT-Thread Nano">在 HK32F030 上移植 RT-Thread Nano</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">10</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/article/2908.html" target="_blank" title="牛人志|19岁开发者是如何成长为RT-Thread 杰出贡献者的?" title="牛人志|19岁开发者是如何成长为RT-Thread 杰出贡献者的?">牛人志|19岁开发者是如何成长为RT-Thread 杰出贡献者的?</a> </div> </div> </div> </div> <!-- E 热门文章 --> <div class="panel panel-default recommend-article"> <div class="panel-heading"> <h3 class="panel-title">最新文章</h3> </div> <div class="panel-body"> <div class="media media-number"> <div class="media-left"> <span class="num">1</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/article/2927.html" target="_blank" title="RT_Thread Studio多串口使用时各串口的独立配置">RT_Thread Studio多串口使用时各串口的独立配置</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">2</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/article/2926.html" target="_blank" title="RT-Thread 中 minIni 组件包无法添加的解决方法">RT-Thread 中 minIni 组件包无法添加的解决方法</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">3</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/article/2925.html" target="_blank" title="STM32 定时器时钟配置技巧">STM32 定时器时钟配置技巧</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">4</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/article/2924.html" target="_blank" title="【嵌入式AI】raspberry pi 安装树莓派系统及配置教程">【嵌入式AI】raspberry pi 安装树莓派系统及配置教程</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">5</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/article/2923.html" target="_blank" title="【社区福利】7月RT-Thread论坛积分换礼开始啦,数量有限!">【社区福利】7月RT-Thread论坛积分换礼开始啦,数量有限!</a> </div> </div> </div> </div> <!-- S 热门文章 --> <div class="panel panel-default recommend-article"> <div class="panel-heading"> <h3 class="panel-title">热门文章</h3> </div> <div class="panel-body"> <div class="media media-number"> <div class="media-left"> <span class="num">1</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/article/2292.html" target="_blank" title="RT-Thread应用项目汇总">RT-Thread应用项目汇总</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">2</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/article/8.html" target="_blank" title="五分钟玩转RT-Thread新社区">五分钟玩转RT-Thread新社区</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">3</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/article/1.html" target="_blank" title="转载 - 基于 RT-Thread 实现 USB 虚拟串口">转载 - 基于 RT-Thread 实现 USB 虚拟串口</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">4</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/article/2576.html" target="_blank" title="中科蓝讯 AB32VG1 RISC-V开发板模块评测任务大挑战">中科蓝讯 AB32VG1 RISC-V开发板模块评测任务大挑战</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">5</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/article/14.html" target="_blank" title="Linus Torvalds:我们都老了,但Linux维护后继无人">Linus Torvalds:我们都老了,但Linux维护后继无人</a> </div> </div> </div> </div> <!-- E 热门文章 --> <div class="panel panel-blockimg"> <a href="https://docs.qq.com/doc/DTVVWWXpLRVl6cER2" target="_blank"><img src="https://oss-club.rt-thread.org/uploads/20210709/cffe317acd2ad479bebbf376f4eb6d72.png" class="img-responsive"/></a> </div> <!-- S 热门问题 --> <div class="panel panel-default hot-article"> <div class="panel-heading"> <h3 class="panel-title">热门问题</h3> </div> <div class="panel-body"> <div class="media media-number"> <div class="media-left"> <span class="num">1</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/question/1877.html" target="_blank" title="面向 RTOS 初学者的例程和文档汇总">面向 RTOS 初学者的例程和文档汇总</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">2</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/question/1623.html" target="_blank" title="菜鸟也想出把力 RT-Thread + STM32 + CanOpen(开源的CanFestival)">菜鸟也想出把力 RT-Thread + STM32 + CanOpen(开源的CanFestival)</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">3</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/question/7657.html" target="_blank" title="【网络编程学习】+Mculover666+qemu和网络编程">【网络编程学习】+Mculover666+qemu和网络编程</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">4</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/question/595.html" target="_blank" title="这里是BUG回报板块!">这里是BUG回报板块!</a> </div> </div> <div class="media media-number"> <div class="media-left"> <span class="num">5</span> </div> <div class="media-body"> <a class="link-dark" href="/ask/question/2402.html" target="_blank" title="RT-Thread 1.1.0 正式版本发布">RT-Thread 1.1.0 正式版本发布</a> </div> </div> </div> </div> <!-- E 热门问题 --> <div class="panel panel-blockimg"> </div> <!-- S 热门标签 --> <div class="panel panel-default hot-tags"> <div class="panel-heading"> <h3 class="panel-title">热门标签</h3> </div> <div class="panel-body"> <a href="/ask/tag/59.html" target="_blank" class="tag" title="RT-Thread Studio"> RT-Thread Studio</a> <a href="/ask/tag/1.html" target="_blank" class="tag" title="RT-Thread一般讨论"> RT-Thread一般讨论</a> <a href="/ask/tag/1132.html" target="_blank" class="tag" title="ART-Pi"> ART-Pi</a> <a href="/ask/tag/10.html" target="_blank" class="tag" title="Bootloader"> Bootloader</a> <a href="/ask/tag/80.html" target="_blank" class="tag" title="串口"> 串口</a> <a href="/ask/tag/22.html" target="_blank" class="tag" title="FinSH"> FinSH</a> <a href="/ask/tag/38.html" target="_blank" class="tag" title="AT"> AT</a> <a href="/ask/tag/121.html" target="_blank" class="tag" title="LWIP"> LWIP</a> <a href="/ask/tag/7.html" target="_blank" class="tag" title="USB"> USB</a> <a href="/ask/tag/35.html" target="_blank" class="tag" title="Env"> Env</a> <a href="/ask/tag/20.html" target="_blank" class="tag" title="SPI"> SPI</a> <a href="/ask/tag/145.html" target="_blank" class="tag" title="studio"> studio</a> <a href="/ask/tag/73.html" target="_blank" class="tag" title="文件系统"> 文件系统</a> <a href="/ask/tag/93.html" target="_blank" class="tag" title="RT-Thread"> RT-Thread</a> <a href="/ask/tag/81.html" target="_blank" class="tag" title="DMA"> DMA</a> <a href="/ask/tag/210.html" target="_blank" class="tag" title="stm32"> stm32</a> <a href="/ask/tag/182.html" target="_blank" class="tag" title="rtthread"> rtthread</a> <a href="/ask/tag/11.html" target="_blank" class="tag" title="Hardfault"> Hardfault</a> <a href="/ask/tag/13.html" target="_blank" class="tag" title="Nano"> Nano</a> <a href="/ask/tag/17.html" target="_blank" class="tag" title="CAN"> CAN</a> <a href="/ask/tag/78.html" target="_blank" class="tag" title="ota"> ota</a> <a href="/ask/tag/204.html" target="_blank" class="tag" title="线程"> 线程</a> <a href="/ask/tag/12.html" target="_blank" class="tag" title="SCons"> SCons</a> <a href="/ask/tag/132.html" target="_blank" class="tag" title="MQTT"> MQTT</a> <a href="/ask/tag/77.html" target="_blank" class="tag" title="flash"> flash</a> <a href="/ask/tag/33.html" target="_blank" class="tag" title="UART"> UART</a> <a href="/ask/tag/18.html" target="_blank" class="tag" title="I2C"> I2C</a> <a href="/ask/tag/106.html" target="_blank" class="tag" title="软件包"> 软件包</a> <a href="/ask/tag/108.html" target="_blank" class="tag" title="cubemx"> cubemx</a> <a href="/ask/tag/394.html" target="_blank" class="tag" title="定时器"> 定时器</a> <a href="/ask/tag/158.html" target="_blank" class="tag" title="W5500"> W5500</a> <a href="/ask/tag/23.html" target="_blank" class="tag" title="BSP"> BSP</a> <a href="/ask/tag/262.html" target="_blank" class="tag" title="at_device"> at_device</a> <a href="/ask/tag/54.html" target="_blank" class="tag" title="FAL"> FAL</a> <a href="/ask/tag/104.html" target="_blank" class="tag" title="ESP8266"> ESP8266</a> <a href="/ask/tag/36.html" target="_blank" class="tag" title="PWM"> PWM</a> <a href="/ask/tag/114.html" target="_blank" class="tag" title="freemodbus"> freemodbus</a> <a href="/ask/tag/401.html" target="_blank" class="tag" title="rtt"> rtt</a> <a href="/ask/tag/47.html" target="_blank" class="tag" title="MicroPython"> MicroPython</a> <a href="/ask/tag/37.html" target="_blank" class="tag" title="RTC"> RTC</a> <a href="/ask/tag/181.html" target="_blank" class="tag" title="C++"> C++</a> <a href="/ask/tag/217.html" target="_blank" class="tag" title="socket"> socket</a> <a href="/ask/tag/143.html" target="_blank" class="tag" title="STM32H743"> STM32H743</a> <a href="/ask/tag/100.html" target="_blank" class="tag" title="RT-Studio"> RT-Studio</a> <a href="/ask/tag/391.html" target="_blank" class="tag" title="bug"> bug</a> <a href="/ask/tag/42.html" target="_blank" class="tag" title="SFUD"> SFUD</a> <a href="/ask/tag/188.html" target="_blank" class="tag" title="easyflash"> easyflash</a> <a href="/ask/tag/138.html" target="_blank" class="tag" title="移植"> 移植</a> <a href="/ask/tag/155.html" target="_blank" class="tag" title="Debug"> Debug</a> <a href="/ask/tag/411.html" target="_blank" class="tag" title="webnet"> webnet</a> </div> </div> <!-- E 热门标签 --> <!-- S 本月问答贡献 --> <div class="panel panel-default recommend-article"> <div class="panel-heading"> <h3 class="panel-title">本月问答贡献</h3> </div> <div class="panel-body"> <div class="media media-number"> <div class="media-left"> <a class="link-dark" href="/u/12552" target="_blank" data-toggle="popover" data-title="123" data-type="user" data-id="12552" title="123"> <img class="media-object img-circle img-small" title="123" alt="123" src="https://oss-club.rt-thread.org/avatoruploads/f6fbad66f5a696b5fe3111e4d62f8628994680d0.jpg"> </a> </div> <div class="media-body"> <div class="media-heading"><a class="link-dark" href="/u/12552" target="_blank" title="123">123</a></div> <div class="text-muted"> <a href="/u/12552/answer">174</a> 个答案 <a href="/u/12552/answer?adopt=1">40</a> 次被采纳</div> </div> </div> <div class="media media-number"> <div class="media-left"> <a class="link-dark" href="/u/13137" target="_blank" data-toggle="popover" data-title="小小李sunny" data-type="user" data-id="13137" title="小小李sunny"> <img class="media-object img-circle img-small" title="小小李sunny" alt="小小李sunny" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgaGVpZ2h0PSIxMDAiIHdpZHRoPSIxMDAiPjxyZWN0IGZpbGw9InJnYigyMDcsMjI5LDE2MCkiIHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48L3JlY3Q+PHRleHQgeD0iNTAiIHk9IjUwIiBmb250LXNpemU9IjUwIiB0ZXh0LWNvcHk9ImZhc3QiIGZpbGw9IiNmZmZmZmYiIHRleHQtYW5jaG9yPSJtaWRkbGUiIHRleHQtcmlnaHRzPSJhZG1pbiIgZG9taW5hbnQtYmFzZWxpbmU9ImNlbnRyYWwiPuWwjzwvdGV4dD48L3N2Zz4="> </a> </div> <div class="media-body"> <div class="media-heading"><a class="link-dark" href="/u/13137" target="_blank" title="小小李sunny">小小李sunny</a></div> <div class="text-muted"> <a href="/u/13137/answer">152</a> 个答案 <a href="/u/13137/answer?adopt=1">39</a> 次被采纳</div> </div> </div> <div class="media media-number"> <div class="media-left"> <a class="link-dark" href="/u/11162" target="_blank" data-toggle="popover" data-title="sync" data-type="user" data-id="11162" title="sync"> <img class="media-object img-circle img-small" title="sync" alt="sync" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgaGVpZ2h0PSIxMDAiIHdpZHRoPSIxMDAiPjxyZWN0IGZpbGw9InJnYigxNjAsMTkyLDIyOSkiIHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48L3JlY3Q+PHRleHQgeD0iNTAiIHk9IjUwIiBmb250LXNpemU9IjUwIiB0ZXh0LWNvcHk9ImZhc3QiIGZpbGw9IiNmZmZmZmYiIHRleHQtYW5jaG9yPSJtaWRkbGUiIHRleHQtcmlnaHRzPSJhZG1pbiIgZG9taW5hbnQtYmFzZWxpbmU9ImNlbnRyYWwiPlM8L3RleHQ+PC9zdmc+"> </a> </div> <div class="media-body"> <div class="media-heading"><a class="link-dark" href="/u/11162" target="_blank" title="sync">sync</a></div> <div class="text-muted"> <a href="/u/11162/answer">24</a> 个答案 <a href="/u/11162/answer?adopt=1">14</a> 次被采纳</div> </div> </div> <div class="media media-number"> <div class="media-left"> <a class="link-dark" href="/u/16253" target="_blank" data-toggle="popover" data-title="Aurora_zk" data-type="user" data-id="16253" title="Aurora_zk"> <img class="media-object img-circle img-small" title="Aurora_zk" alt="Aurora_zk" src="https://oss-club.rt-thread.org/avatoruploads/5256da1c1af8e726b4c0f2c30702ce33707471ca.jpg"> </a> </div> <div class="media-body"> <div class="media-heading"><a class="link-dark" href="/u/16253" target="_blank" title="Aurora_zk">Aurora_zk</a></div> <div class="text-muted"> <a href="/u/16253/answer">20</a> 个答案 <a href="/u/16253/answer?adopt=1">6</a> 次被采纳</div> </div> </div> <div class="media media-number"> <div class="media-left"> <a class="link-dark" href="/u/18288" target="_blank" data-toggle="popover" data-title="出出啊" data-type="user" data-id="18288" title="出出啊"> <img class="media-object img-circle img-small" title="出出啊" alt="出出啊" src="https://oss-club.rt-thread.org/avatoruploads/5551ccbf414e631353c03400fdcd73bb0465ffe3.jpg"> </a> </div> <div class="media-body"> <div class="media-heading"><a class="link-dark" href="/u/18288" target="_blank" title="出出啊">出出啊</a></div> <div class="text-muted"> <a href="/u/18288/answer">64</a> 个答案 <a href="/u/18288/answer?adopt=1">5</a> 次被采纳</div> </div> </div> </div> </div> <!-- E 本月问答贡献 --> <!-- S 本月文章贡献 --> <div class="panel panel-default panel-users"> <div class="panel-heading"> <h3 class="panel-title">本月文章贡献</h3> </div> <div class="panel-body"> <div class="media media-number"> <div class="media-left"> <a class="link-dark" href="/u/15331" target="_blank" data-toggle="popover" data-title="张世争" data-type="user" data-id="15331" title="张世争"> <img class="media-object img-circle img-small" title="张世争" alt="张世争" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgaGVpZ2h0PSIxMDAiIHdpZHRoPSIxMDAiPjxyZWN0IGZpbGw9InJnYigxNjAsMjI5LDE5MCkiIHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48L3JlY3Q+PHRleHQgeD0iNTAiIHk9IjUwIiBmb250LXNpemU9IjUwIiB0ZXh0LWNvcHk9ImZhc3QiIGZpbGw9IiNmZmZmZmYiIHRleHQtYW5jaG9yPSJtaWRkbGUiIHRleHQtcmlnaHRzPSJhZG1pbiIgZG9taW5hbnQtYmFzZWxpbmU9ImNlbnRyYWwiPuW8oDwvdGV4dD48L3N2Zz4="> </a> </div> <div class="media-body"> <div class="media-heading"><a class="link-dark" href="/u/15331" target="_blank" title="张世争">张世争</a></div> <div class="text-muted"> <a href="/u/15331/article">8</a> 篇文章 <a href="/u/15331/article?adopt=1"> 24</a> 次点赞</div> </div> </div> <div class="media media-number"> <div class="media-left"> <a class="link-dark" href="/u/12552" target="_blank" data-toggle="popover" data-title="123" data-type="user" data-id="12552" title="123"> <img class="media-object img-circle img-small" title="123" alt="123" src="https://oss-club.rt-thread.org/avatoruploads/f6fbad66f5a696b5fe3111e4d62f8628994680d0.jpg"> </a> </div> <div class="media-body"> <div class="media-heading"><a class="link-dark" href="/u/12552" target="_blank" title="123">123</a></div> <div class="text-muted"> <a href="/u/12552/article">6</a> 篇文章 <a href="/u/12552/article?adopt=1"> 28</a> 次点赞</div> </div> </div> <div class="media media-number"> <div class="media-left"> <a class="link-dark" href="/u/14961" target="_blank" data-toggle="popover" data-title="lebhoryi" data-type="user" data-id="14961" title="lebhoryi"> <img class="media-object img-circle img-small" title="lebhoryi" alt="lebhoryi" src="https://oss-club.rt-thread.org/avatoruploads/6a92900bf3c98c6ed78484560376edd3966652fb.jpg"> </a> </div> <div class="media-body"> <div class="media-heading"><a class="link-dark" href="/u/14961" target="_blank" title="lebhoryi">lebhoryi</a></div> <div class="text-muted"> <a href="/u/14961/article">5</a> 篇文章 <a href="/u/14961/article?adopt=1"> 5</a> 次点赞</div> </div> </div> <div class="media media-number"> <div class="media-left"> <a class="link-dark" href="/u/13245" target="_blank" data-toggle="popover" data-title="14510690" data-type="user" data-id="13245" title="14510690"> <img class="media-object img-circle img-small" title="14510690" alt="14510690" src="https://oss-club.rt-thread.org/avatoruploads/a68c13b7f9054b6cb7caa208db20c50cc6b57b5a.jpg"> </a> </div> <div class="media-body"> <div class="media-heading"><a class="link-dark" href="/u/13245" target="_blank" title="14510690">14510690</a></div> <div class="text-muted"> <a href="/u/13245/article">3</a> 篇文章 <a href="/u/13245/article?adopt=1"> 14</a> 次点赞</div> </div> </div> <div class="media media-number"> <div class="media-left"> <a class="link-dark" href="/u/14323" target="_blank" data-toggle="popover" data-title="Jacksi" data-type="user" data-id="14323" title="Jacksi"> <img class="media-object img-circle img-small" title="Jacksi" alt="Jacksi" src="https://oss-club.rt-thread.org/avatoruploads/33c4e305abd8baca03ddf4dd55231563616c7ffb.jpg"> </a> </div> <div class="media-body"> <div class="media-heading"><a class="link-dark" href="/u/14323" target="_blank" title="Jacksi">Jacksi</a></div> <div class="text-muted"> <a href="/u/14323/article">3</a> 篇文章 <a href="/u/14323/article?adopt=1"> 7</a> 次点赞</div> </div> </div> </div> </div> <!-- E 本月文章贡献 --> </div> </div> </div> </div> <!--邀请模板--> <script type="text/html" id="invitetpl"> <style> .table-userlist > tbody > tr > td { vertical-align: middle; } </style> <div class="p-4"> <form action="/addons/askrt/invite/post/id/421969" method="post"> <input type="hidden" name="type" value="site"/> <input type="hidden" name="user" value=""/> <input type="hidden" name="price" value="0"/> <div class="alert alert-warning" role="alert"> 邀请好友来解答问题吧!每天可以发送10次邀请!!付费邀请无限制 </div> <div class=""> <ul class="nav nav-tabs nav-invite" style="margin-bottom: 15px;"> <li class="active"><a href="#site-invite" data-type="site" data-toggle="tab">站内会员</a></li> <li><a href="#qq-invite" data-type="qq" data-toggle="tab">QQ邀请</a></li> <li class=""><a href="#weixin-invite" data-type="weixin" data-toggle="tab">微信邀请</a></li> <li class=""><a href="#email-invite" data-type="email" data-toggle="tab">邮箱邀请</a></li> </ul> <div class="tab-content"> <div class="tab-pane fade active in" id="site-invite"> <div> <input type="text" class="form-control" id="search-account" placeholder="请输入会员的用户名或昵称进行搜索"/> </div> <table class="table table-striped table-userlist mt-2 mb-0"> <thead> <tr> <th>头像</th> <th>昵称</th> <th>操作</th> </tr> </thead> <tbody> </tbody> </table> </div> <div class="tab-pane fade" id="qq-invite"> <div class="input-group"> <input type="text" class="form-control" name="qq" placeholder="请输入好友QQ号码"/> <span class="input-group-btn"> <button class="btn btn-primary" type="submit">发送邀请</button> </span> </div> </div> <div class="tab-pane fade" id="weixin-invite"> <div class="clearfix"> <div class="row"> <div class="col-xs-12 text-center"> <img src="/addons/askrt/qrcode/build.html?text=http%3A%2F%2Fclub.rt-thread.org%2Fask%2Fquestion%2F421969.html" width="250"> <div class="text-center">让好友扫描二维码帮忙回答</div> </div> </div> </div> </div> <div class="tab-pane fade" id="email-invite"> <div class="input-group"> <input type="text" class="form-control" name="email" placeholder="请输入好友邮箱"/> <span class="input-group-btn"> <button class="btn btn-primary" type="submit">发送邀请</button> </span> </div> </div> </div> </div> </form> </div> </script> <link rel="stylesheet" media="screen" href="https://oss-club.rt-thread.org/assets/addons/prism/css/theme/prism-okaidia.css" /> <link rel="stylesheet" media="screen" href="https://oss-club.rt-thread.org/assets/addons/prism/css/plugin/prism-line-numbers.css" /> <script type="text/javascript" src="https://oss-club.rt-thread.org/assets/addons/prism/js/prism.js"></script> <style> :not(pre) > code, pre {font-size: 16px; white-space: pre-wrap;word-wrap: break-word;word-break: break-all;} </style> <script> </script> <footer class="footer"> <div class="container-fluid" id="footer"> <p class="address"> Copyright © 2017-2020 All Rights Reserved RT-Thread Copyrights <a href="https://beian.miit.gov.cn" target="_blank">沪ICP备13014002号-1</a> </p> </div> </footer> <div class="floatbar" style="margin-top: -220px;"> <div class="floatbar-item"> <a href="/addons/askrt/question/post.html" class="floatbar-btn"> <i class="fa fa-pencil"></i> <p> 发布<br> 问题 </p> </a> </div> <div class="floatbar-item item-faq"> <a href="javascript:" class="floatbar-btn btn-share"> <i class="fa fa-share-alt"></i> <p> 分享<br> 好友 </p> </a> </div> <div class="floatbar-item item-faq"> <a href="javascript:" class="floatbar-btn"> <i class="fa fa-qrcode"></i> <p> 手机<br> 浏览 </p> </a> <div class="floatbar-box box-qrcode" style="width:220px;"> <div class="floatbar-container"> <div class="clearfix"> <div class="row"> <div class="col-xs-12"> <img src="/addons/askrt/qrcode/build.html?text=http%3A%2F%2Fclub.rt-thread.org%2Fask%2Fquestion%2F421969.html" width="150"> <div class="text-center">扫码手机浏览</div> </div> </div> </div> <span class="arrow" style="top:70px;"></span> </div> </div> </div> <div class="floatbar-item floatbtn-item-top" style="display:none;"> <a href="javascript:" class="floatbar-btn backtotop"> <i class="fa fa-chevron-up"></i> <p> 回到<br> 顶部 </p> </a> </div> </div> <!--搜索模板--> <script type="text/html" id="bodytpl"> <%if(typeof item.title == 'undefined'){%> <%if(item.length>0){%> <div class="autocomplete-searchtags"> <table style="width:100%;"> <tr> <td colspan="2"> <div class="search-subject"> <%for(var i=0;i< item.length;i++){%> <a href="<%=item[i].url%>" class="tag"><%if(item[i].icon){%><img src="<%=item[i].icon%>" alt=""><%}%><%=#replace(item[i].name)%></a> <%}%> </div> </td> </tr> </table> </div> <%}%> <%}else{%> <div class="autocomplete-suggestion autocomplete-questions" data-href="<%=item.url%>" data-url="<%=item.url%>"> <table style="width:100%;"> <tr> <td> <div class="search-subject"> <%if(item.price>0){%> <%if(item.type=='question'){%> <span class="question-price-tag" title="如果回答被采纳,回答者将获得<%=item.price%>元">¥<%=item.price%></span> <%}else{%> <span class="question-price-tag" title="此文章需要支付<%=item.price%>元才能查看">¥<%=item.price%></span> <%}%> <%}%> <%if(item.score>0){%> <%if(item.type=='question'){%> <span class="question-price-tag" title="如果回答被采纳,回答者将获得<%=item.price%>积分">¥<%=item.score%></span> <%}else{%> <span class="question-price-tag" title="此文章需要消耗<%=item.price%>积分才能查看">¥<%=item.score%></span> <%}%> <%}%> <a href="<%=item.url%>"><%=#replace(item.title)%></a> </div> <div class="search-meta text-muted small"> <%=item.userinfo.nickname%> 发布于 <%=item.create_date%> </div> </td> <td class="text-muted text-right" style="width:70px;vertical-align: top;"> <div class="tag tag-xs <%=item.type=='question'?'':'tag-danger'%>"><%=item.type=='question'?'问题':'文章'%></div> </td> </tr> </table> </div> <%}%> </script> <!--感谢模板--> <script id="thankstpl" type="text/html"> <div class="p-4"> <div class="alert alert-warning" role="alert"> 我们应该多多支持小伙伴的分享及热心帮助! </div> <div class=""> <div class="text-center" style="margin-bottom:20px;"> <img src="<%=userAvatar%>" class="img-circle" width="100" height="100" alt=""> <h5><a href="<%=userUrl%>" target="_blank"><%=userNickname%></a></h5> </div> <form action="/addons/askrt/thanks/create.html" id="thanks-form" method="post" target="_blank"> <input type="hidden" name="id" value="<%=id%>"/> <input type="hidden" name="type" value="<%=type%>"/> <input type="hidden" name="money" value="1"/> <div class="row"> <div class="col-xs-4"> <button type="button" class="btn btn-light btn-block btn-money active" data-money="1">¥1 元</button> </div> <div class="col-xs-4"> <button type="button" class="btn btn-light btn-block btn-money" data-money="5">¥5 元</button> </div> <div class="col-xs-4"> <button type="button" class="btn btn-light btn-block btn-money" data-money="10">¥10 元</button> </div> </div> <div class="row my-4"> <div class="col-xs-4"> <button type="button" class="btn btn-light btn-block btn-money" data-money="20">¥20 元</button> </div> <div class="col-xs-4"> <button type="button" class="btn btn-light btn-block btn-money" data-money="50">¥50 元</button> </div> <div class="col-xs-4"> <button type="button" class="btn btn-light btn-block btn-money" data-money="100">¥100 元</button> </div> </div> <div class="row my-1 text-center"> <div class="col-xs-12"> <input type="text" class="form-control" value="" placeholder="请输入你的留言,可选"/> </div> </div> <hr> <div class="row my-1 text-center"> <div class="col-xs-4"> <div class="form-check"> <input class="form-check-input" type="radio" name="paytype" id="paytype-wechat" value="wechat" checked> <label class="form-check-label" for="paytype-wechat">微信</label> </div> </div> <div class="col-xs-4"> <div class="form-check"> <input class="form-check-input" type="radio" name="paytype" id="paytype-alipay" value="alipay"> <label class="form-check-label" for="paytype-alipay">支付宝</label> </div> </div> <div class="col-xs-4"> <div class="form-check"> <input class="form-check-input" type="radio" name="paytype" id="paytype-balance" value="balance"> <label class="form-check-label" for="paytype-balance" data-toggle="tooltip" data-title="余额:¥0">余额支付</label> </div> </div> </div> <div class="row mt-2"> <div class="col text-center"> <button type="submit" class="btn btn-primary btn-submit-thanks">立即支付</button> </div> </div> </form> </div> </div> </script> <!--举报模板--> <script id="reporttpl" type="text/html"> <div class="p-4"> <div class="alert alert-info" role="alert"> 让我们一起共建文明社区!您的反馈至关重要! </div> <div class=""> <form action="/addons/askrt/report/create.html" id="report-form" method="post"> <input type="hidden" name="id" value="<%=id%>"/> <input type="hidden" name="type" value="<%=type%>"/> <div class="row radio"> <div class="col-xs-6 py-1"> <label><input type="radio" name="reason" value="1" checked> 色情低俗</label> </div> <div class="col-xs-6 py-1"> <label><input type="radio" name="reason" value="2" > 政治敏感</label> </div> <div class="col-xs-6 py-1"> <label><input type="radio" name="reason" value="3" > 违法暴力</label> </div> <div class="col-xs-6 py-1"> <label><input type="radio" name="reason" value="4" > 恐怖血腥</label> </div> <div class="col-xs-6 py-1"> <label><input type="radio" name="reason" value="5" > 非法贩卖</label> </div> <div class="col-xs-6 py-1"> <label><input type="radio" name="reason" value="6" > 仇恨言论</label> </div> <div class="col-xs-6 py-1"> <label><input type="radio" name="reason" value="7" > 打小广告</label> </div> <div class="col-xs-6 py-1"> <label><input type="radio" name="reason" value="8" > 其他</label> </div> </div> <div class="row my-1 text-center"> <div class="col-xs-12"> <input type="text" class="form-control" value="" placeholder="其它信息,可选"/> </div> </div> <hr> <div class="row mt-2"> <div class="col text-center"> <button type="submit" class="btn btn-primary btn-submit-thanks">提交反馈</button> </div> </div> </form> </div> </div> </script> <!--支付模板--> <script type="text/html" id="paynowtpl"> <div class="" style="padding:20px 20px 20px 20px;min-width:330px;min-height:220px;"> <div> <div class="alert alert-info"> <div class="row"> <div class="col-xs-12"> <div style="font-size:14px;"><b>支付金额:¥<%=price%></b></div> </div> </div> </div> </div> <form action="/addons/askrt/order/submit.html" id="paynow-form" method="post" target="_blank"> <input type="hidden" name="id" value="<%=id%>"/> <input type="hidden" name="type" value="<%=type%>"/> <hr> <div class="row my-4 text-center"> <div class="col-xs-4"> <div class="form-check"> <input class="form-check-input" type="radio" name="paytype" id="paytype-wechat" value="wechat" checked> <label class="form-check-label" for="paytype-wechat"> <img src="/assets/addons/askrt/img/wechat.png" height="30" alt=""> </label> </div> </div> <div class="col-xs-4"> <div class="form-check"> <input class="form-check-input" type="radio" name="paytype" id="paytype-alipay" value="alipay"> <label class="form-check-label" for="paytype-alipay"> <img src="/assets/addons/askrt/img/alipay.png" height="30" alt=""> </label> </div> </div> <div class="col-xs-4"> <div class="form-check"> <input class="form-check-input" type="radio" name="paytype" id="paytype-balance" disabled value="balance"> <label class="form-check-label" for="paytype-balance" data-toggle="tooltip" data-title="余额:¥0"> <img src="/assets/addons/askrt/img/balance.png" height="30" alt=""> </label> </div> </div> </div> <hr> <div class="row mt-2"> <div class="col text-center"> <button type="submit" class="btn btn-primary btn-submit-pay">立即支付</button> </div> </div> </form> </div> </script> <!--分享模板--> <script id="sharetpl" type="text/html"> <div id="sharenow" style="padding:20px;"> <div class="row text-center"> <div class="col-xs-12"> <img src="/addons/askrt/qrcode/build.html?text=<%=url%>&logo=1&logosize=50&padding=0" width="120" alt=""> <div class="my-2"> 扫码分享到微信 </div> </div> </div> <div class="row text-center mt-3 pt-2"> <div class="col-xs-4"> <a href="http://service.weibo.com/share/share.php?url=<%=url%>&title=<%=title%>" target="_blank"> <span class="fa-stack fa-lg text-danger"> <i class="fa fa-circle fa-stack-2x"></i> <i class="fa fa-weibo fa-stack-1x fa-inverse"></i> </span><br> 分享到微博 </a> </div> <div class="col-xs-4"> <a href="javascript:" class="btn-share-wechat" onclick="layer.msg('请使用微信扫描上方二维码进行分享');"> <span class="fa-stack fa-lg text-success"> <i class="fa fa-circle fa-stack-2x"></i> <i class="fa fa-wechat fa-stack-1x fa-inverse"></i> </span><br> 分享到微信 </a> </div> <div class="col-xs-4"> <a href="https://connect.qq.com/widget/shareqq/index.html?url=<%=url%>&title=<%=title%>&desc=&summary=&site=RT-Thread" target="_blank"> <span class="fa-stack fa-lg text-info"> <i class="fa fa-circle fa-stack-2x"></i> <i class="fa fa-qq fa-stack-1x fa-inverse"></i> </span><br> 分享到QQ </a> </div> </div> </div> </script> <script type="text/javascript" src="/assets/addons/askrt/js/all.min.js?v=1.0.42" merge="true"></script> <script type="text/javascript" src="/assets/addons/askrt/js/summernote.min.js?v=1.0.42" merge="true"></script> <script type="text/javascript" src="/assets/addons/askrt/js/summernote-zh-CN.min.js?v=1.0.42" merge="true"></script> <script type="text/javascript" src="/assets/addons/askrt/js/clipboard.min.js?v=1.0.42"></script> <script type="text/javascript" src="/assets/addons/askrt/js/markdown-expand.js?v=1.0.42"></script> <script src="/assets/addons/askrt/js/jquery.colorpicker.min.js?v=1.0.42"></script><script src="/assets/addons/askrt/js/question.js?v=1.0.42"></script> <script> var im=0; $(function(){ //获取浏览器基本属性 var brower = navigator.userAgent; //如果不是google、火狐、指南针浏览器,就提示。 if (brower.toLowerCase().indexOf("chrome")<0 && brower.toLowerCase().indexOf("firefox")<0 && brower.toLowerCase().indexOf("safari")<0){ var msg = document.getElementById("msg"); msg.innerHTML = "你的浏览器不兼容,请使用 Chrome,Firefox,Safari 等浏览器浏览。"; $(".pt-message").css("display","block"); setInterval('transTip()', 1000); } }); function transTip() { if(im>3) $(".pt-message").hide('fast'); im++; } //你可以在此插入你的统计代码 var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?2eec0ab918a13e63f2b85c83764f81b6"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })();</script> </body> </html>