有时候我们需要在添加按钮后追加弹窗,并且想要选择的ids进行传参,可以通过以下方式获取
// 监听导入题库事件 $('.btn-add-question').click(function (){ var selectIds = Table.api.selectedids(table); var url = 'course/importQuestion/ids/'+selectIds.join(','); Fast.api.open(url, $(this).data("original-title") || $(this).attr("title") || __('导入题目'), $(this).data() || {}, { success: function () { $(".btn-refresh").trigger("click"); } }); });
重点是Table.api.selectedids(table);
<form action="save.php" method="post" target="nm_iframe"> &nbs...
https://3gimg.qq.com/lightmap/v1/marker/index.html?marker=coord:37.6767600000,112.7297800000&key=TKUBZ-D24AF-GJ4JY-JDVM2-IBYKK-KEBCU&referer=p...
<!DOCTYPE html> <html> <head> <title>捕捉和冒泡</title> <meta charset="utf-8"> </head> <bo...
<!DOCTYPE html> <html> <head> <title></title> <meta charset="utf-8"> </head> <body>...
<!doctype html> <html> <head> <meta charset="utf-8"> <title>无标题文档</title> </head> ...
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>获取mac地址</title> </head&g...