使用Jquery关闭编辑窗体的问题
怎么在编辑窗体jsp文件中使用Jquery关闭该窗体。<script type="text/javascript">
//编写自定义JS代码
var api = frameElement.api, W = api.opener;
$(function(){
var temp = "${mbVisitRegistrationPage.planState}";
if(temp == "已审核" || temp == "已核销" || temp == "已删除" || temp == "已驳回"){
alert(temp+"的计划无法编辑!");
api.reload();
api.close();
}
});
</script>
页:
[1]