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中
浙公网安备 33010602011771号