“人品测试”的版本间的差异

来自个人维基
跳转至: 导航搜索
第3行: 第3行:
 
var a = 1
 
var a = 1
 
function Test(){
 
function Test(){
a=Math.ceil(Math.random()*100)
+
a=Math.ceil(Math.random()*100);
 
if (a == 100) {
 
if (a == 100) {
 
   alert(a+"!惊人的100!快去买彩票!")
 
   alert(a+"!惊人的100!快去买彩票!")
 
}else if (a > 89 && a<100){
 
}else if (a > 89 && a<100){
   alert(a+".人品上好.")
+
   alert(a+".人品上好.");
 
}else if (a > 79 && a<90){
 
}else if (a > 79 && a<90){
   alert(a+".人品不错.")
+
   alert(a+".人品不错.");
 
}else if (a > 69 && a<80){
 
}else if (a > 69 && a<80){
   alert(a+".人品尚可.")
+
   alert(a+".人品尚可.");
 
}else if (a > 59 && a<70){
 
}else if (a > 59 && a<70){
   alert(a+".人品还行.")
+
   alert(a+".人品还行.");
 
}else if (a > 49 && a<60){
 
}else if (a > 49 && a<60){
 
   alert(a+".差不到十分就及格了?.")
 
   alert(a+".差不到十分就及格了?.")
 
}else if (a<49){
 
}else if (a<49){
   alert(a+".有点拉.")
+
   alert(a+".有点拉.");
 
}
 
}
 
}
 
}
 
Test()
 
Test()
 
</script>
 
</script>
<button type="button" onclick="Test()">我好了,开始测试</button>
+
<button type="button" onclick="Test();">我好了,开始测试</button>
 
</html>
 
</html>
 
==测完就[[首页|爬回壶里]]吧==
 
==测完就[[首页|爬回壶里]]吧==

2022年10月19日 (三) 20:57的版本

测完就爬回壶里