JS代碼對縮進敏感嗎?還是說這個題目驗證有問題
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>認識語句</title>
<script type="text/javascript">
? ? document.write("Hello");
????//這里要是給縮進,慕課網頁提交會報錯
? ? document.write("world");
</script>
</head>
<body>
</body>
</html>
2019-07-23
沒什么影響??s進多少個空格只是個人口味問題。不過同一個團隊內部還是保持一致比較好,或者找套大廠的風格指南來參考。