添加生成选强项框额外生成id类,并将[]转为_
/extend/fast/Form/select(),407行
$id = str_replace(['[',']'],"_",$name);
return "<select id='".$id."' {$options}>{$list}</select>";
假设$name=row[type_id],则最终js调用方法为
$(function(){
$("#row_type_id_").change(function(){
//要触发的事件
console.log('111')
});
});
评论