将attr改为prop即可如将$("select item1").attr("selected", "selected")改为$("select item1").prop("selected", "selected")