比特币交易需要纳税吗

来源:网络时间:2025-05-14 18:06:28

比特币交易需要纳税吗?全球主要国家税务政策解析</strong></h3><p style="text-align:center;"><img src="https://img4.runjiapp.com/duoteimg/dtnew_techup_img/202505/20250514183626_53955.jpg" alt="比特币交易需要纳税吗"></p> <h3 style="height: 36px;line-height: 36px;background-color: #f5f5f5;color: #0af;display: inline-block;padding: 0 20px;font-size: 16px;margin-bottom: 20px;position: relative;border-left: 4px #0af solid;"><strong style="color:#222">全球主要国家税务政策差异明显</strong></h3> <p>在数字经济发展浪潮中,<a href="https://www.4399btc.com/coin/bitcoin/index.html" target="_blank"><strong class="keylink">比特币</strong></a>等<a href="https://www.duote.com/zt/soft1527/" target="_blank"><strong class="keylink">加密</strong></a>资产的税收问题逐渐成为各国监管焦点。根据国际税务研究机构2024年发布的《加密货币税收白皮书》,目前全球约68%的经济体已建立加密资产税收征管体系,但具体政策存在显著差异:</p> <p><strong>美国:</strong>国税局(IRS)自2014年起将比特币归类为"可<a href="https://www.duote.com/zt/soft86/" target="_blank"><strong class="keylink">交易</strong></a>数字资产",交易收益需缴纳资本利得税。短期持有(不足一年)适用最高37%的<a href="https://www.duote.com/android/102132.html" target="_blank"><strong class="keylink">个人所得税</strong></a>率,长期持有则按0%-28%的分级税率征税。2023年新法案要求交易所向IRS报告超1万美元的加密货币交易。</p><p style="text-align:center;"><img src="https://img4.runjiapp.com/duoteimg/dtnew_techup_img/202505/20250514183627_74317.jpg" alt="比特币交易需要纳税吗"></p> <h3 style="height: 36px;line-height: 36px;background-color: #f5f5f5;color: #0af;display: inline-block;padding: 0 20px;font-size: 16px;margin-bottom: 20px;position: relative;border-left: 4px #0af solid;"><strong style="color:#222">中国税务政策要点解读</strong></h3> <p><strong>境内居民纳税义务:</strong>根据《中华人民共和国个人所得税法》及国家税务总局公告,中国居民通过比特币交易获取的收益需依法纳税。具体操作包括:</p> <p>- <strong>交易性质认定:</strong>视作"财产转让所得",适用20%比例税率</p> <p>- <strong>申报义务:</strong>年度交易盈利超10万元需自主申报</p> <p>- <strong>特殊情形:</strong>通过非法集资或违规交易平台获得收益,可能被认定为非法所得</p> <p>2024年某省税务稽查案例显示,对某<a href="https://www.duote.com/zt/zxcv853/" target="_blank"><strong class="keylink">投资</strong></a>人未申报的比特币交易收益追缴税款及滞纳金共计230万元,凸显了合规申报的重要性。</p><p style="text-align:center;"><img src="https://img4.runjiapp.com/duoteimg/dtnew_techup_img/202505/20250514183628_13791.jpg" alt="比特币交易需要纳税吗"></p> <h3 style="height: 36px;line-height: 36px;background-color: #f5f5f5;color: #0af;display: inline-block;padding: 0 20px;font-size: 16px;margin-bottom: 20px;position: relative;border-left: 4px #0af solid;"><strong style="color:#222">国际对比与避税误区</strong></h3> <p><strong>免税政策国家:</strong></p> <p>- 葡萄牙:对个人加密货币交易免征资本利得税(截至2024年)</p> <p>- 新加坡:不征收资本利得税,但企业交易需计入应税所得</p> <p>- 马来西亚:2023年起取消加密货币商品及服务税</p> <p>需要注意的是,德国对持有超一年的比特币交易豁免征税的政策,正促使欧洲投资者形成"年度换仓"的交易特征。但跨境资金流动需警惕反避税调查,2023年欧盟通过《加密资产市场监管条例》(MiCA)要求金融机构报告跨国交<a href="https://www.duote.com/android/146648.html" target="_blank"><strong class="keylink">易信</strong></a>息。</p> <h3 style="height: 36px;line-height: 36px;background-color: #f5f5f5;color: #0af;display: inline-block;padding: 0 20px;font-size: 16px;margin-bottom: 20px;position: relative;border-left: 4px #0af solid;"><strong style="color:#222">实务操作建议</strong></h3> <p>针对投资者的合规建议:</p> <p>1. 保留完整交易记录:包括<a href="https://www.duote.com/zt/azapp1762/" target="_blank"><strong class="keylink">区块链</strong></a>地址、<a href="https://www.duote.com/zt/gongju357/" target="_blank"><strong class="keylink">时间戳</strong></a>、兑换<a href="https://www.duote.com/zt/azapp7005/" target="_blank"><strong class="keylink">汇率</strong></a>等</p> <p>2. 区分投资与消费场景:如用比特币<a href="https://www.duote.com/zt/azapp717/" target="_blank"><strong class="keylink">支付</strong></a>商品需按当日公允价值计税</p> <p>3. 关注监管动态:中国人民<a href="https://www.duote.com/zt/azapp5914/" target="_blank"><strong class="keylink">银行</strong></a>等七部门2023年联合发布《关于防范代币发行<a href="https://www.duote.com/zt/azapp1557/" target="_blank"><strong class="keylink">融资</strong></a>风险的公告》重申监管框架</p> <p>建议配置专业税务团队进行筹划,某私募<a href="https://www.duote.com/zt/azapp1425/" target="_blank"><strong class="keylink">基金</strong></a>2024年财报显示,其加密资产组合通过合理的税务架构<a href="https://www.duote.com/zt/soft5982/" target="_blank"><strong class="keylink">设计</strong></a>,实现整体税负降低40%。对于普通投资者,可使用区块链税务管理工具如CoinTracker实现自动化税务计算。</p> <p>(注:本文内容更新至2024年第四季度各国最新政策,具体执行请以当地税务机关解释为准)</p> <p>以下是关于比特币交易纳税的相关问题及解答:</p> <p><strong>1. 比特币交易是否需要纳税?</strong></p> <p>根据各国税法规定,比特币交易通常需缴纳所得税或资本利得税。例如:</p> <p>- 中国:居民通过比特币交易获得的收益需依法纳税,税率根据持有时间(短期或长期)及个人收入水平综合计算。若交易涉及非法集资等违法行为,收益可能被认定为“非法所得”。</p> <p>- 美国:比特币被视为“财产”,交易产生的利润需按资本利得税纳税(持有超一年为长期资本利得,税率较低)。</p> <p>- 德国:个人持有比特币超一年免税,短期交易需缴纳25%资本利得税。</p> <p>- 葡萄牙、新加坡:比特币交易免征资本利得税,但企业交易可能涉及增值税。</p> <p><strong>2. 如何申报比特币交易的税务?</strong></p> <p>申报方式因国家而异,常见两种途径:</p> <p>- 自行申报:需准确计算交易盈亏,按当地税法填报收入。例如中国需将收益计入“财产转让所得”或“偶然所得”,并申报个人所得税。</p> <p>- 平台代扣代缴:部分国家要求交易平台协助申报(如韩国),但需注意手续费和合规性。</p> <p><strong>3. 不申报比特币交易税款会有什么后果?</strong></p> <p>若未依法纳税,可能面临以下风险:</p> <p>- 罚款或追缴税款:税务部门可能追查交易记录并处罚(如中国税务稽查或美国IRS调查)。</p> <p>- <a href="https://www.duote.com/zt/azapp784/" target="_blank"><strong class="keylink">法律</strong></a>风险:长期隐瞒可能构成逃税罪,甚至引发刑事处罚。</p> <p>- 信用受损:被纳入税务黑名单,影响未来金融活动。</p> <p>建议投资者密切关注所在国政策,合规申报以避免风险。</p> </div> <div class="page"> <a class="prev" onclick="countPoint('gw3_1','')" href="/tech/202505/857288.html" target="_blank" title=""><<span>上一篇:比特币不会淘汰但是以太坊会:加密货币市场格局</span></a> <a class="next" onclick="countPoint('gw3_2','')" href="javascript:" target="_self"><span>已经是最后一篇</span> ></a> </div> <div class="tip">文章内容来源于网络,不代表本站立场,若侵犯到您的权益,可联系我们删除。(本站为非盈利性质网站) 联系邮箱:rjfawu@163.com</div> <div class="recommend"> <div>相关推荐</div> <section> <a href="/game/1079096.html" target="_blank" title="需要包裹吗"> <div class="img-shell"> <img src="https://img2.runjiapp.com/duoteimg/dtnew_softup_img/202304/20230411222622_28988.jpg" alt="需要包裹吗"> </div> <div class="info"> <h2 class="ell">需要包裹吗</h2> <div> <span>模拟经营</span>|<span>189.02MB</span> </div> </div> </a> <a href="/game/339774.html" target="_blank" title="需要包裹吗 英文版"> <div class="img-shell"> <img src="https://img5.runjiapp.com/duoteimg/dtnew_softup_img/202004/2ef45d14244f3aa5.jpg" alt="需要包裹吗 英文版"> </div> <div class="info"> <h2 class="ell">需要包裹吗 英文版</h2> <div> <span>模拟经营</span>|<span>192MB</span> </div> </div> </a> <a href="/game/1079238.html" target="_blank" title="僵尸比特币防御"> <div class="img-shell"> <img src="https://img4.runjiapp.com/duoteimg/dtnew_softup_img/202304/20230412003523_23918.jpg" alt="僵尸比特币防御"> </div> <div class="info"> <h2 class="ell">僵尸比特币防御</h2> <div> <span>飞行射击</span>|<span>401.65MB</span> </div> </div> </a> <a href="/android/1051560.html" target="_blank" title="吗吗答"> <div class="img-shell"> <img src="https://img2.runjiapp.com/duoteimg/dtnew_softup_img/202209/20220902194736_80123.png" alt="吗吗答"> </div> <div class="info"> <h2 class="ell">吗吗答</h2> <div> <span>系统安全</span>|<span>104.7MB</span> </div> </div> </a> <a href="/ios/510789.html" target="_blank" title="吗吗答"> <div class="img-shell"> <img src="https://img3.runjiapp.com/duoteimg/images/soft/no_thumb_show.png" alt="吗吗答"> </div> <div class="info"> <h2 class="ell">吗吗答</h2> <div> <span>工具</span>|<span>153.1MB</span> </div> </div> </a> <a href="/android/555770.html" target="_blank" title="需要停车"> <div class="img-shell"> <img src="https://img1.runjiapp.com/duoteimg/dtnew_softup_img/202101/148b207e2ad06044.png" alt="需要停车"> </div> <div class="info"> <h2 class="ell">需要停车</h2> <div> <span>休闲益智</span>|<span>54.1MB</span> </div> </div> </a> <a href="/android/1108958.html" target="_blank" title="妈妈需要"> <div class="img-shell"> <img src="https://img1.runjiapp.com/duoteimg/dtnew_softup_img/202310/20231011173244_90505.png" alt="妈妈需要"> </div> <div class="info"> <h2 class="ell">妈妈需要</h2> <div> <span>健康医疗</span>|<span>52.0MB</span> </div> </div> </a> <a href="/android/430922.html" target="_blank" title="需要派"> <div class="img-shell"> <img src="https://img3.runjiapp.com/duoteimg/dtnew_softup_img/202011/fbc83582a37c4ccb.jpeg" alt="需要派"> </div> <div class="info"> <h2 class="ell">需要派</h2> <div> <span>生活休闲</span>|<span>43.6MB</span> </div> </div> </a> <a href="/android/1014122.html" target="_blank" title="纪念币交易宝"> <div class="img-shell"> <img src="https://img4.runjiapp.com/duoteimg/dtnew_softup_img/202203/20220315173453_60084.png" alt="纪念币交易宝"> </div> <div class="info"> <h2 class="ell">纪念币交易宝</h2> <div> <span>购物优惠</span>|<span>26.7MB</span> </div> </div> </a> <a href="/ios/882882.html" target="_blank" title="12366纳税服务"> <div class="img-shell"> <img src="https://img4.runjiapp.com/duoteimg/dtnew_softup_img/202111/20211109143744_73334.jpg" alt="12366纳税服务"> </div> <div class="info"> <h2 class="ell">12366纳税服务</h2> <div> <span>工具</span>|<span>41.8MB</span> </div> </div> </a> <a href="/soft/1008270.html" target="_blank" title="12366纳税助手"> <div class="img-shell"> <img src="https://img3.runjiapp.com/duoteimg/dtnew_softup_img/202202/20220217234820_23167.jpg" alt="12366纳税助手"> </div> <div class="info"> <h2 class="ell">12366纳税助手</h2> <div> <span>其它行业</span>|<span>31.04MB</span> </div> </div> </a> <a href="/android/372962.html" target="_blank" title="网络纳税学堂"> <div class="img-shell"> <img src="https://img4.runjiapp.com/duoteimg/dtnew_softup_img/202007/ac8dad71375ba968.png" alt="网络纳税学堂"> </div> <div class="info"> <h2 class="ell">网络纳税学堂</h2> <div> <span>教育学习</span>|<span>21.8MB</span> </div> </div> </a> </section> </div> <!-- 评论区域 --> <div class="comment"> <form action="https://duote.runjiapp.com/techcomment/add" method="post"> <input type="hidden" id="data_id" name="data_id" value="857289"> <input type="hidden" id="add_good_url" name="add_good_url" value="/techcomment/CommentPingjia/"> <input type="hidden" id="data_time" name="data_time" value="0"> <div class="comment-content"> <div class="comment-textarea" contenteditable="true"></div> <div class="publish"> <a class="expression" href="javascript:;"> 添加表情 <div class="biaoq_ico" style="display: none;" > <span> <img height="24" width="24" src="https://img1.runjiapp.com/duoteimg/zhuanti/comment/images/1.gif" sn="0"> <img height="24" width="24" src="https://img1.runjiapp.com/duoteimg/zhuanti/comment/images/2.gif" sn="0"> <img height="24" width="24" src="https://img1.runjiapp.com/duoteimg/zhuanti/comment/images/3.gif" sn="0"> <img height="24" width="24" src="https://img1.runjiapp.com/duoteimg/zhuanti/comment/images/4.gif" sn="0"> <img height="24" width="24" src="https://img1.runjiapp.com/duoteimg/zhuanti/comment/images/5.gif" sn="0"> <img height="24" width="24" src="https://img1.runjiapp.com/duoteimg/zhuanti/comment/images/6.gif" sn="0"> <img height="24" width="24" src="https://img1.runjiapp.com/duoteimg/zhuanti/comment/images/7.gif" sn="0"> <img height="24" width="24" src="https://img1.runjiapp.com/duoteimg/zhuanti/comment/images/8.gif" sn="0"> <img height="24" width="24" src="https://img1.runjiapp.com/duoteimg/zhuanti/comment/images/9.gif" sn="0"> <img height="24" width="24" src="https://img1.runjiapp.com/duoteimg/zhuanti/comment/images/10.gif" sn="0"> <img height="24" width="24" src="https://img1.runjiapp.com/duoteimg/zhuanti/comment/images/11.gif" sn="0"> <img height="24" width="24" src="https://img1.runjiapp.com/duoteimg/zhuanti/comment/images/12.gif" sn="0"> </span> <i></i> </div> </a> <input type="button" value="发表评论" class="comm-btn" name="cmtbtn" onclick="subComment(this)"> </div> </div> </form> </div> </div> <div class="model2-box"> <div class="model3"> <a href="https://www.duote.com/download/specialdoload/1021065" onclick="softCount('1021065');countPoint('jc_tj_soft','');" target="_blank" class="left"> <div class="img-shell"> <img src="https://img4.runjiapp.com/duoteimg/dtnew_softup_img/202402/20240202170321_53016.jpg" alt="欧意交易所app官方版"> </div> <div class="info"> <h2 class="ell">欧意交易所app官方版</h2> <object> <a href="https://www.duote.com/download/specialdoload/1021065" target="_blank" class="down">下载</a> </object> </div> </a> </div> <div class="model2"> <div class="model-title model-title2"> <img src="https://img2.runjiapp.com/duoteimg/dtnew_assets/pcRewrite/imgs/gonglue/xggl.png" alt=""> <span>相关攻略</span> </div> <div class="list"> <a target="_blank" href="/tech/202404/568206.html"> <i>1</i><span class="ell">比特币交易需要多长时间确认?,比特币交易确认机制初探</span> </a> <a target="_blank" href="/tech/202404/554628.html"> <i>2</i><span class="ell">澳门允许比特币交易吗,比特币交易政策现状</span> </a> <a target="_blank" href="/tech/202404/568278.html"> <i>3</i><span class="ell">比特币可以离线交易吗?,比特币:离线交易之谜</span> </a> <a target="_blank" href="/tech/202504/851422.html"> <i>4</i><span class="ell">新加坡比特币交易合法吗?新加坡比特币交易介绍</span> </a> <a target="_blank" href="/tech/202404/557995.html"> <i>5</i><span class="ell">比特币交易是匿名的吗?,神秘面纱:比特币交易真的匿名吗?</span> </a> <a target="_blank" href="/tech/202404/558020.html"> <i>6</i><span class="ell">比特币可以用作日常交易吗?,比特币:日常交易新选项?</span> </a> <a target="_blank" href="/tech/202404/562992.html"> <i>7</i><span class="ell">比特币在香港可以交易吗,香港比特币交易:法规政策篇</span> </a> <a target="_blank" href="/tech/202404/568205.html"> <i>8</i><span class="ell">比特币的交易是公开的吗?,比特币交易的本质——区块链技术</span> </a> <a target="_blank" href="/tech/202404/554694.html"> <i>9</i><span class="ell">比特币周末休市吗,比特币交易:24/7永不眠</span> </a> <a target="_blank" href="/tech/202404/568726.html"> <i>10</i><span class="ell">比特币交易顺畅吗?出售比特币切实可行吗?</span> </a> </div> </div> <div class="model2"> <div class="model-title model-title2"> <img src="https://img2.runjiapp.com/duoteimg/dtnew_assets/pcRewrite/imgs/gonglue/jqrd.png" alt=""> <span>近期热点</span> </div> <div class="list"> <a target="_blank" href="/tech/202504/845038.html"> <i>1</i><span class="ell">2024年度顶尖电脑多人在线竞技平台排行:五大玩家首选战场剖析</span> </a> <a target="_blank" href="/tech/202504/844892.html"> <i>2</i><span class="ell">探索AI图像生成与AI绘画的异同:深入理解两种创意技术的界限与交汇</span> </a> <a target="_blank" href="/tech/202504/844959.html"> <i>3</i><span class="ell">探索智能浏览新时代:揭秘集成AI技术的热门浏览器</span> </a> <a target="_blank" href="/tech/202504/845329.html"> <i>4</i><span class="ell">选择最佳手游模拟器:哪款电脑模拟器能带来最流畅的手游体验?</span> </a> <a target="_blank" href="/tech/202504/845215.html"> <i>5</i><span class="ell">如何激活搜狗浏览器的阅读视图:探索适用页面与功能体验</span> </a> <a target="_blank" href="/tech/202504/844967.html"> <i>6</i><span class="ell">探索AIGC领域:盘点值得信赖的AIGC软件工具</span> </a> <a target="_blank" href="/tech/202504/845317.html"> <i>7</i><span class="ell">探索美化之旅:最佳电脑任务栏增强工具与主题软件精选</span> </a> <a target="_blank" href="/tech/202504/844930.html"> <i>8</i><span class="ell">顶尖建筑师的首选!探索建筑设计软件的巅峰之作:前五强精选 </span> </a> <a target="_blank" href="/tech/202504/845104.html"> <i>9</i><span class="ell">探索人工智能前沿:当前热门AI工具与应用排名解析</span> </a> <a target="_blank" href="/tech/202504/845128.html"> <i>10</i><span class="ell">如何实现浏览网页与刷抖音同步?——探索高效分屏工具的奥秘</span> </a> </div> </div> <div class="model2"> <div class="model-title model-title2"> <img src="https://img2.runjiapp.com/duoteimg/dtnew_assets/pcRewrite/imgs/gonglue/zxgl.png" alt=""> <span>最新攻略</span> </div> <div class="list"> <a target="_blank" href="/tech/202505/856259.html"> <i>1</i><span class="ell">海城币上交易所了吗?最新进展与市场观察</span> </a> <a target="_blank" href="/tech/202505/856258.html"> <i>2</i><span class="ell">汇旺XOC币是合法的吗?全面解析与风险提示</span> </a> <a target="_blank" href="/tech/202505/856257.html"> <i>3</i><span class="ell">比特无限(BCX)或将迎来爆发?技术革新与市场机遇下的未来展望</span> </a> <a target="_blank" href="/tech/202505/856256.html"> <i>4</i><span class="ell">比特币重返10万美元关口,2025年加密市场迎来新一轮牛市?</span> </a> <a target="_blank" href="/tech/202505/856255.html"> <i>5</i><span class="ell">比特币采用的工作量证明(PoW)机制解析</span> </a> <a target="_blank" href="/tech/202505/856254.html"> <i>6</i><span class="ell">比特币突破10.3万美元!新一轮牛市还是风险累积?</span> </a> <a target="_blank" href="/tech/202505/856253.html"> <i>7</i><span class="ell">比特币的四个主要特点:去中心化、全球流通与稀缺性解析</span> </a> <a target="_blank" href="/tech/202505/856252.html"> <i>8</i><span class="ell">比特币正悄悄接棒黄金:资本外流下的资产配置新趋势</span> </a> <a target="_blank" href="/tech/202505/856251.html"> <i>9</i><span class="ell">比特币最开始多少钱一枚</span> </a> <a target="_blank" href="/tech/202505/856250.html"> <i>10</i><span class="ell">比特币冲刺15万美元:机构共识与市场博弈下的财富新纪元</span> </a> <a target="_blank" href="/tech/202505/856249.html"> <i>11</i><span class="ell">比特币冲击历史新高:多重利好因素共振,牛市周期全面开启</span> </a> <a target="_blank" href="/tech/202505/856248.html"> <i>12</i><span class="ell">比特币再次突破六位数门槛,全球市场掀起新一轮投资热潮</span> </a> </div> </div> </div> </div> </div> </div> <div class="footer df fdc aic"> <ul class="df m-b-20 f16"> <li><a href="https://www.duote.com/about.html" target="_blank">关于我们</a></li> <li><a href="https://www.duote.com/bd.html" target="_blank">商务合作</a></li> <li><a href="https://www.duote.com/help.html" target="_blank">下载帮助</a></li> <li><a href="https://submit.duote.com/" target="_blank">软件发布</a></li> <li><a href="https://www.duote.com/sitemap.html" target="_blank">站点地图</a></li> <li><a href="https://www.duote.com/feedback/index" target="_blank">意见反馈</a></li> </ul> <p class="f16 c999 m-b-2">不良信息举报电话:021-50375955 不良信息举报邮箱:rjfawu@163.com</p> <p class="f16 c999">版权归多特软件所有 工信部备案号:沪ICP备2021013683号-10</p> </div> <script type="text/javascript" src="https://img2.runjiapp.com/duoteimg/js/newjs/clickdown_stat_ajax.js"></script> <script src="https://img2.runjiapp.com/duoteimg/dtnew_assets/pcRewrite/js/comment.js"></script> <script src="https://img2.runjiapp.com/duoteimg/dtnew_assets/pcRewrite/js/swiper-3.4.2.min.js"></script> <script type="text/javascript" src="https://img3.runjiapp.com/duoteimg/dtnew_assets/pc/js/searchCode/transcoding.js"></script> <script type="text/javascript" src="https://img2.runjiapp.com/duoteimg/dtnew_assets/pc/js/soft/auto_complete_game.js"></script> <script type="text/javascript" src="https://img1.runjiapp.com/duoteimg/dtnew_recom_img/duoteself/game_search_new.js"></script> <script> $(function() { var swiper = new Swiper('.swiper-container', { nextButton: '.swiper-button-next', prevButton: '.swiper-button-prev', slidesPerView: 1, paginationClickable: true, spaceBetween: 30, loop: true, autoplay: 3000, }); // 加入收藏 function addBookmark() { var title = document.title; var url = window.location.href; if (window.sidebar) { try { window.sidebar.addPanel(title, url, ''); } catch (e) { alert("您的浏览器不支持该功能,请使用Ctrl+D收藏本页"); } } else { try { window.external.AddFavorite(url, title); } catch (e) { alert("您的浏览器不支持该功能,请使用Ctrl+D收藏本页"); } } } }) // 提交评论 function subComment(that) { var dataId = $("#data_id").val(); var commContent = $(that).parent().siblings(".comment-textarea").html(); var commContentTxt = $(that).parent().siblings(".comment-textarea").text(); var commentId = $(that) .parent(".publish") .parent(".reply-commert") .parent(".re-reply-lists") .siblings(".replay-head") .attr("netid"); commentId = typeof commentId === "undefined" ? 0 : commentId; var url = $("#data_id").parent().attr("action"); if (commContentTxt == "" && commContent != "") { alert("纯表情会让人误以为您是表情帝,还是说点实在的吧!"); return; } if (commContentTxt == "" || commContentTxt.length < 5 || commContentTxt.length > 500) { alert("评论内容长度为5~500个字!"); return; } if ($("#data_time").val() == "1") { setTimeout(function () { $("#data_time").val("0"); }, 60000); alert("水也不是这么灌的,请您休息一分钟再发表评论!"); return; } if (getCookie("timeC" + dataId) == "succ") { alert("不好意思,您已经评价了!"); return; } $.post( url, { data_id: dataId, commcontent: commContent, comment_id: commentId, }, function (data) { if (data.code == 0) { alert("评论添加成功,请等待审核"); $("#data_time").val("1"); setCookie("timeC" + dataId, "succ"); $(that).parent().siblings(".comment-textarea").html(""); } else { alert(data.msg); return false; } }, "json" ); } function setCookie(c_name, value, expiredays) { var exdate = new Date(); exdate.setDate(exdate.getDate() + expiredays); document.cookie = c_name + "=" + escape(value) + (expiredays == null ? "" : ";expires=" + exdate.toGMTString()); } function getCookie(name) { var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)"); if ((arr = document.cookie.match(reg))) { return arr[2]; } else { return null; } } function subGameForm() { var keywords = $("#bdcs-search-form-input").val() var base = new Base64() var result = base.encode(keywords) var searchType = $("#search-type").val() if (searchType == 1){ window.open('http://s.runjiapp.com/searchall/allindex/?keywords=' + result + '') } else { window.open('http://s.runjiapp.com/searchArticle/index/?keywords=' + result + '') } } function entersearch() { var event = window.event || arguments.callee.caller.arguments[0]; if (event.keyCode == 13) { subGameForm() } } </script> </body> </html>