摘要:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <div></div> <script type="text/javascript"> //alert 提示框 alert('wal 阅读全文
摘要:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <!-- 浏览器对象模型 BOM --> <!-- 1.window alert() confirm() prompt() setI 阅读全文
摘要:
<!DOCTYPE html> <html> <head> <title>for循环</title> </head> <body> <script type="text/javascript"> // for(初始化条件;结束条件;递增条件){ // run this code // } var i 阅读全文
摘要:
<!DOCTYPE html> <html> <head> <title>三元运算</title> </head> <body> <script type="text/javascript"> // (条件) ? run this code : run this code; var isresult 阅读全文
摘要:
<!DOCTYPE html> <html> <head> <title></title> </head> <body> <script type="text/javascript"> var weather = 'sunny'; switch(weather){ case 'sunny': alt 阅读全文