获取 this.value 和 this.options[this.options.selectedIndex].text
<select id="rodCode" class="form-control m-b" name="rodCode" onchange="getDeviceName(this.value,this.options[this.options.selectedIndex].text)">
<option value="">请选择</option>
</select>