返回的是字符串
<select>
<option value="1">aa</option>
</select>
<button>按钮</button>
<script>
$("button").click(function () {
alert($("select option:selected").val()===1);
});
//返回false
</script>
总结:
当value="1"时:
===1 false
==="1" true
当value=1时:
===1 false
==="1" true