m0_46499515
2021-01-21 09:40麻烦大神看看这个代码哪里错了,怎么修改?小白求助
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>repl.it</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<script src="script.js">
var doccolor="ff80ff";
function calculation(a, b, c){
var a = age;
var b = gender;
var c = phone;
function calage(age){
if(age>0.5 && age<=0.6){
return 1;
else if(age>0.6 && age<=0.65){
return 2;
else if(age>0.65 && age <=7){
return 3;
else if(age>0.7 && age <=0.75){
return 4;
else if(age >0.75 && age <=0.8){
return 5:
else if(age >0.8 && age <= 0.85){
return 6:
else if(age >0.85){
return 7;
}
}
}
}
}
}
}}
function calgender(gender){
if(gender>0.6 && gender<= 0.75){
return 2;
else if(gender >0.75&& gender< 0.9){
return 4;
else if(gender > 0.9){
return 6;
}
}
}
}
function calphone(phone){
if (phone>0.2 && phone <=0.3){
return 1;
else if (phone >0.3 && phone <=0.4){
return 2;
else if (phone >0.4 && phone<= 50){
return 3;
else if(phone>0.5){
return 4;
}
}
}
}
}
var resu
a + b + c = resu
return resu;
}
</script>
</head>
<body bgcolor="ffffff" onload="resetCounters();" data-new-gr-c-s-check-loaded="14.991.0" data-gr-ext-installed="">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<b>By Tylor Lee</b></font></td>
</tr>
</tbody></table>
<p>
</p><blockquote>
<font size="+1">
<b>Rating system</b>
</font><br>
Type in the following requirement to get the points of the KOL
<p>
</p><form name="powermod">
<table border="1" align="center">
<tbody><tr>
<td>Age:
<input type="text" value="" name="aaa" onchange="pmout.value='';"></td>
<td>phone:
<input type="text" value="" name="iphone" onchange="pmout.value='';"></td>
<td>gender:
<input type="text" value="" name="female" onchange="pmout.value='';"></td>
</tr>
<tr>
<td>
<input type="button" value="Compute" onclick="pmout.value = calculation(aaa,female,iphone);">
</td>
<td align="right">
<i>result</i> =
</td>
<td bgcolor="bbbbbb"><input type="text" value="" name="pmout" onchange="pmout.value='';">
</td>
</tr>
</tbody></table>
</form>
<p>
<font size="0">
The program is written in JavaScript,
and runs on the client computer.
</font>
</p><p>
</p></blockquote>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
</tr>
</tbody></table>
<p>
</body>
</html>
小白求助,很基础的问题 谢谢大神
- 点赞
- 回答
- 收藏
- 复制链接分享
12条回答
为你推荐
- 【小白紧急求助】MVC5使用update-database数据迁移时出现“System.InvalidOperationException: 序列不包含任何匹配元素”的错误如何解决?
- c#
- visual studio
- microsoft
- asp.net
- sql
- 1个回答
- java抽象类继承,变量赋值问题 (小白求助ing,蟹蟹)
- eclipse
- 1个回答
- 小白求助Android开发Listview问题
- 应用
- android
- list
- 5个回答
- Java中调用dos命令,小白一只,求助
- java
- 1个回答