js的三种对话框

1.警告对话框 alert(‘massage’);

 

2.确认对话框 confirm(‘massage’);

有确认与取消两种选项

返回bool值

 

3.输入框 prompt(‘massage’ , ‘inputValue’);

返回输入的值

转载自:https://blog.csdn.net/honeylittlebear/article/details/5780903

You may also like...