基本语法入门,必备调试技巧
<!DOCTYPE html> <html lang="en"> <head><meta charset="UTF-8"><title>Title</title><script>//js严格区分大小写//1.定义变量//var num=1;//alert(num);//2.条件控制var score=71;if(score>60 && score<70){alert("60~70");}else if (score>70 && score<80){alert("70~80")}else{alert("other")}console.log(score)</script> </head> <body></body> </html>
也可以在下面手动输入