实例
<!doctype html> <html> <head> <meta charset=UTF-8> <meta name=Generator content=baidu.com> <meta name=Author content=作者> <meta name=Keywords content=关键词> <meta name=Description content=文档描述信息> <!-- <link rel="stylesheet" type="text/css" href="css/"> <link rel="icon" type="image/x-icon" href="img/标题logo"> <script type="text/javascript" src=""></script> --> <style type="text/css"> *{margin:0;padding:0;} </style> <title>弹窗</title> </head> <body> <script> var x=58; if(x==100){ alert("甲!学霸级,满分") }else if(x>=90){ alert("乙!距离满分只差一点点") }else if(x>=80){ alert("丙!加油,进步很快") }else if(x>=70){ alert("丁!没事多看看书吧,") }else if(x>=60){ alert("及格") }else{alert("不及格,需要加油!")} </script> </body> </html>
运行实例 »
点击 "运行实例" 按钮查看在线实例