答案
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<div class='triangle'></div>
<script>
var triangle = document.querySelector('.triangle');
// 补全代码
triangle.innerHTML='*<br>**<br>***<br>'
</script>
</body>
</html>
标签:01,triangle,补全,innerHTML,直角三角形,querySelector
From: https://www.cnblogs.com/wan-cb/p/17227937.html