- modal & component部件
b4-modal-default
注意,form一定要放在table外面,否则submit将没有反应。
<button data-toggle="modal" data-target="#modelId" type="button" class="btn btn-success">添加角色</button>
@component('components.modal', ['id'=>'modelId', 'title'=>'添加角色', 'url'=>'admin/role'])
<div class="form-group"