為什么什么都不顯示呢
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Math </title>
<script type="text/javascript">
?document.write(Math.ceil(3.3))<br/>
?document.write(Math.ceil(-0.1))<br/>
?document.write(Math.ceil(-9.9))<br/>
?document.write(Math.ceil(8.9))<br/>
</script>
</head>
<body>
</body>
</html>
2020-02-21
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Math </title>
<script type="text/javascript">
?document.write(Math.ceil(3.3)+"</br>")
?document.write(Math.ceil(-0.1))
?document.write(Math.ceil(-9.9))
?document.write(Math.ceil(8.9))
</script>
</head>
<body>
</body>
</html>
//</br>是HTML 輸出方式有問題哦
2021-04-08
</br>是HTML的輸出方法
js里document.write(Math.ceil(3.3)+"</br>")要這樣用
2020-12-23
補(bǔ)充:不要忘了分號(hào)? ;