防抖就是input不可能每次打一个就数据请求,设置一段时间再请求
解决方案是lodash的debounce
节流就是一段时间内不允许再次请求,例如验证码60秒内不允许再请求。
解决方案是lodash的throttle