摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <div></div> <script type="text/javascript"> //alert 提示框 alert('wal 阅读全文
posted @ 2020-12-21 15:51 *!Walter!* 阅读(66) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <!-- 浏览器对象模型 BOM --> <!-- 1.window alert() confirm() prompt() setI 阅读全文
posted @ 2020-12-21 15:22 *!Walter!* 阅读(49) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <title>for循环</title> </head> <body> <script type="text/javascript"> // for(初始化条件;结束条件;递增条件){ // run this code // } var i 阅读全文
posted @ 2020-12-21 15:20 *!Walter!* 阅读(86) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <title>三元运算</title> </head> <body> <script type="text/javascript"> // (条件) ? run this code : run this code; var isresult 阅读全文
posted @ 2020-12-21 11:01 *!Walter!* 阅读(58) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <title></title> </head> <body> <script type="text/javascript"> var weather = 'sunny'; switch(weather){ case 'sunny': alt 阅读全文
posted @ 2020-12-21 10:06 *!Walter!* 阅读(46) 评论(0) 推荐(0) 编辑