layer closed to prevent the default event
.post $ ( "reportContent / updatePre.do", {ID: ID}, function (STR) { layer.open ({ title: 'edit report' , type: . 1 , MaxMin: to true , Shade: [ 0.8, '# 444 ' ], Area: ' 1000px ' , Content: str, // . Note that, if the Object is str, then the required characters splicing Success: function (Data) { UED = UE.getEditor (' Editor ', {height: 500 } ); ued.ready ( function () { CON= Ued.getAllHtml (); }); // ue.setHeight (500); }, End: function () { resetForm (); }, Cancel: function (index) { layer.confirm ( 'whether to save the current data? ', {btn: [' yes', 'No']}, function () { document.getElementById ( "myModal" ) .submit (); }, function () { layer.closeAll (); }); return to false ; } }); });