当前位置:网站首页>easyui 重置多条件查询
easyui 重置多条件查询
2022-06-28 05:55:00 【不会code的coder】
当我们使用多个条件进行查询数据时,如果查询后,需要再一次进行查询,需要把原来的查询条件进行清空,然后输入新的查询条件。以下只适用于easyui框架,原生js有它自己的一套js代码,其他框架也可能有自己的函数。所以,只适用于easyui。
首先是input文本框的重置,
<input type="text" id="SIP" name="a" size="20"
onkeydown="if(event.keyCode==13) searchCity()" />我给他定义了一个name,使用name进行重置。接下来是下拉框,也定义了个name
<select id="xy" class="easyui-combobox" name="xieyi" style="width:200px;" onkeydown="if(event.keyCode==13) searchCity()">
<option >选择协议类型</option>
<option>ssh</option>
<option>wts</option>
<option>vnc</option>
<option>remoteadmin</option>
<option>bo2000</option>
<option>ftp</option>
<option>pcany</option>
</select>然后就是,重置按钮:
<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="doReset()">重置</a>最后,就是重置函数,也就是doReset()函数:
/* 查询条件重置 */
function doReset(){
$('#xy').combobox('setValue','选择协议类型');
$('input[name=a]').val("");
}只要点击重置按钮,就可以重置了。
边栏推荐
- 19 fonctions de perte d'apprentissage profond
- Valueerror: iterative over raw text documents expected, string object received
- 深度学习19种损失函数
- Taobao seo training video course [22 lectures]
- Qtcanpool q05: no border
- V4l2 driver layer analysis
- Introduction to uicollectionviewdiffabledatasource and nsdiffabledatasourcesnapshot
- 【MYSQL】所有查询表中有2千万数据--sql如何优化
- Qtcanpool knowledge 07:ribbon
- 上海域格ASR CAT1 4g模块2路保活低功耗4G应用
猜你喜欢

Filecoin黑客松开发者大赛

Small ball playing

RL 实践(0)—— 及第平台辛丑年冬赛季【Rule-based policy】

How popular are FB and WhatsApp mass messages in 2022?

原动力×云原生正发声 降本增效大讲堂

深度学习19种损失函数

电商转化率这么抽象,到底是个啥?

6. graduation design temperature and humidity monitoring system (esp8266 + DHT11 +oled real-time upload temperature and humidity data to the public network server and display the real-time temperature

Xcode13.3.1 项目执行pod install后报错

What are the advantages of e-mail marketing? Why do sellers of shopline independent station attach so much importance to it?
随机推荐
numpy.reshape, numpy.transpose的理解
Prime mover × Cloud primordial is making sound, reducing cost and increasing efficiency lecture hall
How to do a good job of dam safety monitoring
Data middle office: construction ideas and implementation experience of data governance
YYGH-BUG-03
bash install.sh ********错误
什么是WebRTC?
Lenovo hybrid cloud Lenovo xcloud, new enterprise IT service portal
V4l2 driver layer analysis
Apple MDM Bypass 免越狱绕过MDM配置锁 免费
Caused by: com.fasterxml.jackson.databind.exc.InvalidFormatException:异常解决
MR-WordCount
Shanghai Yuge ASR CAT1 4G module 2-way low power 4G application
Ethereum Classic的难度计算|猿创征文
A full set of excellent SEO tutorials worth 300 yuan [159 lessons]
开发者的时代红利在哪里?
数据仓库:金融/银行业主题层划分方案
Jenkins continues integration 2
[untitled]
数据中台:数据治理的七把利剑