I need a function. Click a button to start a timer. If the button is not clicked within 2 seconds, a certain p will be hidden. If the button is clicked, the timer will be refreshed. The button is within p, and the button needs to be continuously shocked to maintain the display of p.
<p>
<button>按钮</button>
<p>
What you mean by "clicking a button" and not clicking the button within 2 seconds should not be the same button, right?