我对此非常陌生。任何人都可以帮助我了解如何获得"期权价值"在一个ado循环?非常感谢!
<div class="modal-body">
<p>Select Member
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<select class="js-select">
<script>
var objConnection = new ActiveXObject("adodb.connection");
var strConn = "driver={sql server};server=localhost;database=mydatabase";
objConnection.Open(strConn);
var rs = new ActiveXObject("ADODB.Recordset");
var strQuery = "SELECT ID, Member FROM tblMembers order by Member";
rs.Open(strQuery, objConnection);
rs.MoveFirst();
while (!rs.EOF)
<Option value={
document.write(rs.fields(0));>
document.write(rs.fields(1));
rs.movenext();
}</Option>
rs.close;
objConnection.close;
</script>
</select>
</p>
</div>