alert弹出框

xiaoxiao2021-02-28  28

<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>alert弹出框</title> </head> <body> <button οnclick="alert1();">弹出框</button> <script type="text/javascript"> var str = "厉害了我的哥"; //alert:弹出框,浏览器自带弹出框,有的也叫警告框,alert(参数设置需要弹出的内容) function alert1(){ alert(str); } </script> </body> </html>
转载请注明原文地址: https://www.6miu.com/read-2621639.html

最新回复(0)