//el :input text
//num: 次数
//time:毫秒数
//class: bling 就是那个粉红色背景的样式
bling: function (el, num, time) {
num = num === 0 ? num : num || 3;
time = time || 150;
$(el).toggleClass("bling");
if (num < -1) {
$(el).removeClass("bling");
return false;
} else {
num--;
setTimeout(function () {
bling(el, num, time);
}, time);
}
}