<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
添加回答
举报
0/150
提交
取消