js函数方法: <script> function getDefaultSelectedOption(selectId, valIfNull) { var selectId = selectId.replace(/^#/, ''), opts; try { opts = document.getElementById(selectId).getElementsByTagName('option'); for (var i in opts) { if (opts[i].defaultSelect…