fastadmin iframe 表单提交之后跳转

controller 对应的那个js文件中添加:

define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function($, undefined, Backend, Table, Form){
    Form.api.bindevent($("form[role=form]"), function(){
        window.top.location.href='http://www.google.com';
    }) 
})

Form.api.bindevent 定义在require-form.js中

 

posted @ 2017-11-06 19:55  捕蛇者说  阅读(1161)  评论(0编辑  收藏  举报