通过jQuery触发select的change事件的方法示例:
html代码:
<select class="custom-select" name="fldm" id="fldm">
<option selected value="">Choose...</option>
<option value="https://www.02405.com/category/ui">大前端</option>
<option value="https://www.02405.com/category/program">程序开发</option>
<option value="https://www.02405.com/category/mobile">移动开发</option>
</select>
jquery代码:
let fldm = $("#fldm");
fldm.change(function(){
console.log("select change");
});
fldm.trigger("change");