赞
踩
var ipt = document.getElementsByName("inputid"); ipt .value = '10';
var evt = document.createEvent("HTMLEvents"); evt.initEvent("change", false, true); ipt .dispatchEvent(evt);