标签:rip script class span lse var else content nbsp
<script> | |
var x = prompt(‘请输入数值: ‘) | |
var y; | |
if(x > 2){ | |
y = 3; | |
}else{ | |
y = 0; | |
} | |
alert(x + ‘,‘ + y); | |
alert(‘x = ‘ + x + ‘,y=‘ + y); | |
</script> |
标签:rip script class span lse var else content nbsp
原文地址:https://www.cnblogs.com/zhangao/p/9796870.html