版本:4.0.0
K.setup_window方法可以弹出页内窗口或iframe,其中data对象的设置同K.
/* * 设置窗口弹出 * params {data:[{"name":"","title":"","content":"","type":"","value":""},],title:"",submit:url或(formdata,object),complete:(object)} */ K.setup_window(params)用法举例:
K.setup_window({data:[{name:"set1",title:"设置1"},{name:"set2",title:"设置2"}],title:"测试弹出",submit:"https://www.hadsky.net"});将会出现如下弹出框:
点击“保存”按钮将会把数据提交到submit对应的url地址里。