当名称在变量上时如何选择输入?在这种情况下,变量是 idThis = "nico"
<input name="man-news" />
<input id="nico" name="milkman" />
<input name="letterman2" />
<input name="newmilk" />
<script>
var idThis = "nico";
$('input[id=idThis ]').val('has man in it!');
</script>
谢谢!