12345678910111213141516171819202122 |
- @model System.Web.Mvc.HandleErrorInfo
- @{
- ViewBag.Title = "错误";
- }
- <script type="text/javascript">
- function encodeURL(s) {
- return s.replace(/&/g, "&");
- }
- $(function () {
- $.messager.alert('系统提示', '@Model.Exception.Message', 'info', function () {
- var lastUrl = '@ViewBag.url';
- if (lastUrl == '') {
- history.back();
- } else {
- location.href = encodeURL('@ViewBag.url');
- }
- });
- })
- </script>
|