在实际应用中重写confirm()方法,以验证过,包括其中的样式等
http://blog.csdn.net/renpinghao/article/details/6304632?locationNum=2模拟confirm()的实现,而不是重写