【发布时间】:2015-06-29 07:19:19
【问题描述】:
我正在使用 MVC4 和 Jquery。
我在通过 MVC 中的操作方法打开 .htm 文件时遇到问题。
这是我的代码:
<img src="~/Images/question_frame.png" style="margin-top:3px;height:18px;width:20px;" onclick="window.open('@Url.Action("Help", "Home", new { id = "NMCHelp"})', 'NMCHelp',toolbar=no, scrollbars=yes, resizable=yes, top=50, left=50,width=750, height=600');"/>
我的行动方法:
[HttpGet]
[Authorize]
public ActionResult Help(){
var result = new FilePathResult("~/help/nmc/enu/Default.htm", "text/html");![enter image description here][1]
return result;
}
我在尝试打开时遇到问题。我收到类似的错误 '$'未定义。
请告诉我如何通过操作方法打开 .htm 文件
【问题讨论】:
标签: javascript jquery asp.net-mvc asp.net-mvc-4