Asp.net mvc 4 在这里,我向控制器发送了一条消息,这在Internet explorer中运行良好,但无法运行chrome为什么?

Asp.net mvc 4 在这里,我向控制器发送了一条消息,这在Internet explorer中运行良好,但无法运行chrome为什么?,asp.net-mvc-4,Asp.net Mvc 4,如果有人知道这个问题,把你的答案贴在这里 if (_Division == '') { window.location = "@Url.Action("Index", new { Message = "Enter division", @Result = 0 })"; return; } 尝试document.location而不是window.location document.location = "@Url.Action("Index", new { Message

如果有人知道这个问题,把你的答案贴在这里

if (_Division == '') 
{
    window.location = "@Url.Action("Index", new { Message = "Enter division", @Result = 0 })";
    return;
}

尝试document.location而不是window.location

 document.location = "@Url.Action("Index", new { Message = "Enter division", @Result = 0 })";

您能否准确显示您收到的错误消息?