我想将星星从(最小到最大)反转到(最大到最小)
function seethestars1() {
for (var i = 0; i <= 10; i++) {
for (var j = 0; j < i; j++) {
document.getElementById("emptytext2").value += "*";
}
document.getElementById("emptytext2").value += "\n";
}
}
<textarea id="emptytext2" name="S2">
<input id="emptytext3" type="button" value="Click for the stars" onclick ="seethestars1()" />