$.confirm消息弹出层,content内容是一个form表单,请问下在formSubmit中的action中该如何提交content中form表单中的内容,以post提交?

 $.confirm({
            title: '修改',
            content: '' +
                '<form class="" action="" method="post" 
                                onsubmit="return false;">' +
                '   <div class="form-group">'+
                '       <label>邮箱</label>'+
                '       <div>'+
                '            <input class="" type="email" 
                                name="" 
                                placeholder="请输入邮箱..">'+
                '       </div>'+
                '  </div>'+
                '  <div>'+
                '       <label>密码</label>'+
                '       <div>'+
                '           <input type="password" 
                                name="" 
                               placeholder="请输入密码..">' +
                '       </div>'+
                '  </div>'+
                '   <button type="submit">提交</button>'+
                '  </form>',
            buttons: {
                formSubmit: {
                    text: '提交',
                    btnClass: 'btn-blue',
                    action: function () {

                    }
                },
                cancel: {
                    text: '取消'
                },
            },

https://blog.csdn.net/silversoldier/article/details/84993360

表单中action="xxxxxxxxxx" 就是填写你后台方法的路由。 看了你表单有 <

<button type="submit">提交</button>'   所以只需要action="xxxxxxxxxx"    就行了。

如果想用普通按钮提交的话,就需要js创建点击事件,然后ajax 访问后台,进行表单提交。