javascript document.getElementById('d1').innerHTML= fn(2,3)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<p id="d1"></p>
<script>
function fn(x,y){
return x*y
}
document.getElementById('d1').innerHTML= fn(2,3)
</script>
</body>
</html>
评论
发表评论