After the js implementation gets the focus the cursor is behind the string
- 2020-03-30 03:57:53
- OfStack
Mainly introduced js implementation after the cursor in the string after the focus, the principle is to get the focus of their own copy paste, like friends can see
var t=$("#"+id).val();
$("#"+id).val("").focus().val(t);
// the idea is to copy and paste yourself back into focus