JS-确认框

if(confirm("Sure to xxxxxx?")){
    xxxxxx;
    xxxxxx;
}

  

原文地址:https://www.cnblogs.com/gary-tao/p/5941477.html