fastadmin基层库类修改历史


2020.2.11

添加生成选强项框额外生成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')

            });

        });


鼎云博客
  • 最新评论
  • 总共0条评论