答案 0 :(得分:-1)
我刚修改了你的代码,请查看
function build(val) {
console.log(val);
document.getElementById("output").innerHTML = val;
}

<select onchange=build(value) id=character>
<option value=dog>dog</option>
<option value=cat>cat</option>
<option value=moose>moose</option>
</select>
<p id=output>#</p>
&#13;