Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/blackberry/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在javascript中单击按钮时如何显示模式?我需要一个例子,谢谢_Javascript_Modal Dialog - Fatal编程技术网

在javascript中单击按钮时如何显示模式?我需要一个例子,谢谢

在javascript中单击按钮时如何显示模式?我需要一个例子,谢谢,javascript,modal-dialog,Javascript,Modal Dialog,在javascript中单击按钮时如何显示模式?我需要一个例子,谢谢你不要使用alert,你可以寻找一个类似于alert的模式库,或者构建自己的模式库 document.getElementById(“myButton”).addEventListener(“单击”,函数(){ 警惕(“世界”); }) 你好

在javascript中单击按钮时如何显示模式?我需要一个例子,谢谢你不要使用alert,你可以寻找一个类似于alert的模式库,或者构建自己的模式库

document.getElementById(“myButton”).addEventListener(“单击”,函数(){
警惕(“世界”);
})

你好