解决方法
替换成 Option.prop(“selected”,“selected”);
原因
Before jQuery 1.6, the .attr() method sometimes took property values into account when retrieving some attributes, which could cause inconsistent behavior.
从 jQuery 1.6 开始新增了一个方法 prop()。attr() 和pro()分别是获取/设置 attributes 和 properties 的方法。
To retrieve and change DOM properties such as the checked, selected, or disabled state of form elements, use the .prop() method.
具有 true 和 false 两个属性的属性,如 checked, selected 或者 disabled 使用prop(),其他的使用 attr()