方法1:
document.getElementById('iframeId').contentWindow.location.reload(true);
方法2:
document.getElementById('iframeId').src=url;
方法3:
$("#iframeId").attr('src', url);
// 修改
function submitUpdate() {
var isValid = $('#markingStyleUpdateForm').form('validate');
if (!isValid) {
return isValid;
}
$.ajax({
type: 'post',
url: '${path}/markingStyle/update',
cache: false,
dataType: 'json',
data: $('#markingStyleUpdateForm').serialize(),
success: function (result) {
if (result.obj) {
parent.$.messager.alert('提示', result.obj, 'info');
parent.$.modalDialog.openner_dataGrid.datagrid('reload');
<!---取修改页面id即可 -->
document.getElementById('iframe').contentWindow.location.reload();
/* parent.$.modalDialog.handler.dialog('close'); */
} else {
parent.$.messager.alert("操作提示", result.msg, "warning");
}
}
});
}