我如何使用jQuery?
for (i = 0; i < 20; i++) { var radioBtn = $('<input type="radio" name="rbtnCount" />'); radioBtn.appendTo('#target'); }
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <div id="target"></div>