日期:2014-05-17  浏览次数:21195 次

问题 求解MVC网页 浏览器显示的居然是HTML代码求指点这是什么情况

这是代码

@model MvcApplication2.Models.Table_1

@{
    ViewBag.Title = "Edit";
}
    <script src="../../Scripts/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.json-2.3.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.easyui.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#btn_Submit").click(function () {
                try {
                    var article = {};
                    article.ID = $("#id").val();
                    article.Name = $("#name").val();
                    article.Psw = $("#psw").val();
                    $.ajax({
                        type: "post",
                        contentType: "application/json;utf-8",
                        url: "/show/EditComplete",
                        data: "{json:'" + $.toJSON(article) + "'}",
                        dataType: "",
                        success: function (data) {
                            if (data == "success") {