Home > Back-end >  Js who can help me have a look at the great god, why didn't input radius of area and perimeter
Js who can help me have a look at the great god, why didn't input radius of area and perimeter

Time:10-01

<meta charset="UTF-8">
Document

The function CAL () {
Var r=document. GetElemtById (''ve '). The value;
Var cir=2 * 3.1415926 * r;
Var aera=r * r * 3.1415926; Document. GetElemtById (' as'). value=https://bbs.csdn.net/topics/cir; Document. GetElemtById (' zx). value=https://bbs.csdn.net/topics/aera; }
</script>


<body>

Radius: & lt; Input type="text" id="'ve & gt;"

Circumference: & lt; Input type="text" id="as" & gt;

Area: & lt; Input type="text" id="zx" & gt;



CodePudding user response:

GetElemtById spelt wrong document. The getElementById

CodePudding user response:

reference 1st floor qq_21985711 response:
getElemtById spelt wrong document. The getElementById

Yes, look for for a long time, later found that spelt wrong, my heart is very tired, but thank you

  • Related