$.ajax({
url:'<%=path%>/content/addJctt',
type:'post',
dataType:'json',
data:data.field,
success:function(data){
console.log("添加基层头条成功!");
// 关闭弹窗,刷新数据表格
var index = parent.layer.getFrameIndex(window.name);
Layui 的数据表格,在调用Ajax请求后的关闭弹窗和刷新父窗口js
![](https://img-home.csdnimg.cn/images/20240711042549.png)