var optionEle = $("").append(this.purName).prop("value",this.purchaserId).attr("selected",true);添加select下来选项默认选中。
但是一下三种方式均无法获取:
var selected= $("#goodPurchasers").val();
var selected2= $("#goodPurchasers option[selected=selected]").attr("value");
var selected3 = $("#goodPurchasers option:first").attr("value");