Due to the needs of the project, I made a super simple pop-up box, which will pop up as soon as the page is opened. Since the project director said that it should be as small as possible (less introduction of encapsulated file packages), native js was used (I found that jQuery is basically used on the Internet). Without further ado, let’s get into the code
登录确定提醒
to achieve the effect :
The above is an introduction to how to use native js to simply encapsulate the confirm pop-up box. If you want to know more aboutjQuery video tutorial, please Follow PHP Chinese website.
The above is the detailed content of How to use native js to simply encapsulate the confirm pop-up box. For more information, please follow other related articles on the PHP Chinese website!