前言

  • ruoyi 4.6.0

打印bootstrapTable数据

$("#bootstrap-table").bootstrapTable('getData').forEach(function(data,index){
	console.log(data);
});
  • $("#bootstrap-table"):找到bootstrapTable
  • bootstrapTable('getData'):https://www.bootstrap-table.com.cn/doc/api/methods/#getdata
  • forEach:循环遍历

在这里插入图片描述

参考

https://www.bootstrap-table.com.cn
https://bootstrap-table.com

Logo

快速构建 Web 应用程序

更多推荐