//用到此方法的情景 先根据input框中的姓名模糊搜索出客户名称,当选中客户名称之后,获取ID ,根据客户的ID,去搜索数据列表. 防抖方法 let timeout; let currentValue function fetch(value, callback) { if (timeout) { clearTimeout(timeout); timeout = null; } currentValue = value; //进行数据请求 function fake() { const pa
目录 一.解决思路 二.请求参数 三.后台相关代码 四.Mybatis注意要点 一.解决思路 让前端的下拉框支持单选.多选及全选,后台让Mybatis使用** trim **标签拼接动态SQL,实现 select * from order where startDate = sysdate and (name="A" or name="B" or name="C") --------------------------------------