这篇文章主要介绍“JavaScript怎么实现重置功能",在日常操作中,相信很多人在Java脚本语言怎么实现重置功能问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答“JavaScript怎么实现重置功能"的疑惑有所帮助!接下来,请跟着小编一起来学习吧!
Java脚本语言实现重置功能的方法:【$(文档)。打开('点击','。' dealFlowSelectedBox _ bntBox _ left ',函数(){ $(')。dealFlowSelectedBox _.】。
本文操作环境:windows10系统、JavaScript 1.8.5、thinkpad t480电脑。
Java脚本语言实现重置功能的具体代码如下所示:
超文本标记语言代码:
身体
!-头部-
divclass='mui-content '
divclass='headerBox '
ahref=' JavaScript :历史。go(-1);'class='fanhuiBnt '
imgsrc='./img/DelFlow/范慧。png‘/
/a
筛选条件
/div
divclass='dealFlowSelectedBox '
div class=' DealFlowSelectedBox _ title '
em/em
跨度支付方式/span
/div
div class=' dealfowselectedbox _ contBox '
ahref=' JavaScript : void(0);'class=' DealFlowSelectedBox _ paymentactive ' imgsrc='./img/DelFlow/quan bu。png‘/全部/a
ahref=' JavaScript : void(0);'class=' DealFlowSelectedBox _ payment ' img src='./img/signing/zhifubao。png /支付宝收款/a
ahref=' JavaScript : void(0);'class=' DealFlowSelectedBox _ payment ' img src='./img/签名/微信。png /微信收款/a
/div
/div
div class=' DealFlowSelectedBox _ line '/div
divclass='dealFlowSelectedBox '
div class=' DealFlowSelectedBox _ title '
em/em
跨度证件资料/span
/div
div class=' dealfowselectedbox _ contBox '
ahref=' JavaScript : void(0);'class=' DealFlowSelectedBox _ certificate active '全部/a
ahref=' JavaScript : void(0);'class=' DealFlowSelectedBox _ certificate '收款成功/a
ahref=' JavaScript : void(0);'class=' DealFlowSelectedBox _ certificate '退款成功/a
ahref=' JavaScript : void(0);'class=' DealFlowSelectedBox _ certificate '收款失败/a
/div
/div
div class=' DealFlowSelectedBox _ line '/div
div class=' DealFlowSelectedBox ' style=' padd :0;'
div class=' DealFlowSelectedBox _ title ' style=' margin 336000.24 rem;宽度' : calc(100%-0.24微米);'
em/em
跨度交易时间/span
/div
ulclass=' dealfowselectedbox _ time box '
里
跨度开始时间/span
输入类型=' text ' id=' starDate ' name=' starDate ' value=' placeholder='请选择开始日期readonly='readonly'/
imgsrc='./img/index/index_xyjt.png'/
/li
里
跨度结束时间/span
输入类型=' text ' id=' end date '名称=' end date '值=' placeholder='请选择结束日期readonly='readonly'/
imgsrc='./img/index/index_xyjt.png'/
/li
/ul
/div
div class=' dealfowselectedbox _ bntBox '
ahref=' JavaScript : void(0);'class=' dealfowselectedbox _ bntBox _ left '重置/a
ahref=' JavaScript : void(0);'class=' dealfowselectedbox _ bntBox _ right '确定/a
/div
/div
/bodyJS代码:
scripttype='text/javascript '
$(文档)。打开('点击','。' dealFlowSelectedBox _ bntBox _ left ',函数(){ 0
$('.deadlowselectedbox _ payment’).移除CLaSS(' active ');
$('.dealfowselectedbox _ certificate ').移除CLaSS(' active ');
$('.deadlowselectedbox _ payment’).第一个()。添加CLaSS(' active ');
$('.dealfowselectedbox _ certificate ').第一个()。添加CLaSS(' active ');
$("输入")。val(" ");
})
/script到此,关于“JavaScript怎么实现重置功能"的学习就结束了,希望能够解决大家的疑惑。理论与实践的搭配能更好的帮助大家学习,快去试试吧!若想继续学习更多相关知识,请继续关注网站,小编会继续努力为大家带来更多实用的文章!
内容来源网络,如有侵权,联系删除,本文地址:https://www.230890.com/zhan/77890.html