if(confirm("Sure to xxxxxx?")){ xxxxxx; xxxxxx; } 转载于:https://www.cnblogs.com/gary-tao/p/5941477.html