123456789101112131415161718192021222324252627282930313233343536 |
- @model System.Web.Mvc.HandleErrorInfo
- @{
- ViewBag.Title = "错误";
- }
- @functions{
- Exception GetExceptionDetailMessage(Exception ex)
- {
- if (ex.InnerException == null)
- return ex;
- else
- return GetExceptionDetailMessage(ex.InnerException);
- }
- }
- <script type="text/javascript">
- function encodeURL(s) {
- return s.replace(/&/g, "&");
- }
- $(function () {
- $.messager.alert('系统提示', '@GetExceptionDetailMessage(Model.Exception).Message', 'info', function () {
- var lastUrl = '@ViewBag.url';
- var windowID = $.SystemGeneral.getUrlParam("WindowID");
- if (lastUrl == '') {
- if (windowID && window != "") {
- top.$('#' + windowID).window('close');
- } else {
- location.reload(false);
- }
- } else {
- location.href = encodeURL('@ViewBag.url');
- }
- });
- })
- </script>
|