亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

html5 - A problem with using vue components to implement functions
扔個(gè)三星炸死你
扔個(gè)三星炸死你 2017-06-17 09:17:03
0
2
978

As shown in the figure: Click the clear button to clear the input text. Since the input loses focus at this time, the corresponding clear button will also be hidden.
Need to be solved: When clearing the input text, the focus is still on the input, and the clear button is still displayed.

扔個(gè)三星炸死你
扔個(gè)三星炸死你

reply all(2)
黃舟

.focus() can control input and focus. If there is no content clearly displayed, this logic is wrong.

阿神

"When clearing the input text, the focus is still on the input, and the clear button is still displayed." It's very simple. After the onSpanTag function clears the content, manually set the input focus and then set the clear button to display:

document.querySelector("#input").focus(); 
this.states = true;
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template