The main function is to click to display, and then click anywhere on the page to turn off the display effect, mainly the function of $(document).click
There are often some pop-up layers during the development process. After pop-up, they should be automatically closed when clicking elsewhere on the page. The following is the implementation code:
HTML code:
JS code