var val = $(this) val();
1、$(this). focus();
2、$(this).val("");
3、$(this).val(val);
1、调用focus方法
2、value赋值为空
3、之前的input的值再赋给自己
本文共 177 字,大约阅读时间需要 1 分钟。
转载于:https://www.cnblogs.com/chenjack/p/6298239.html