<form class="layui-form form-horizontal" action="{:url('admin/menu/add')}" method="post"> <input type="text" name="action" autocomplete="off" placeholder="方法" class="layui-input"> </form>
form = $('.form-horizontal');target = form.get(0).action;//想获取表单的url 但是获取的是input
翻过高山走不出你
慕容3067478