Asp.Net Mvc区域没有看到js文件?

时间:2013-02-18 19:24:04

标签: asp.net-mvc asp.net-mvc-areas

查看页面网址:

  

MyApp>区域>管理员>意见> _AddPost.cshtml

我的项目目录(我将url输出字符串写为注释)

MyApp
-- Areas
-- Content
-- -- tinymce
-- -- -- jscripts
-- -- -- -- tiny_mce
-- -- -- -- -- tiny_mce.js   // localhost:4574/Content/......../tiny_mce.js
-- -- -- -- -- langs
-- -- -- -- -- -- en.js      // localhost:4574/Admin//langs/en.js
-- -- -- -- -- -- tr.js      // localhost:4574/Admin//langs/tr.js
-- -- -- -- -- themes 
-- -- -- -- -- -- editor_template.js // localhost:4574/Admin//themes/editor_template.js

我添加了以下行,

<script src="@Url.Content("~/Content/tinymce/jscripts/tiny_mce/tiny_mce.js")"></script>

<script type="text/javascript">
    tinyMCE.init({
        language: "tr",   // this line call tr.js
        elements: "Body", // 
        mode: "exact",    // this line call editor_template.js
        height: 300,
        width: 500
    });
</script>

我收到错误

  

localhost:4574 / Admin // langs / en.js 404(未找到)   localhost:4574 / Admin // themes / advanced / editor_template.js 404   (未找到)

预期网址

  

本地主机:4574 /内容/ TinyMCE的/ jscripts /..../ LANGS / en.js   本地主机:4574 /内容/ TinyMCE的/ jscripts /..../ editor_template.js

这些是无效的网址。为什么会生成这些网址。

我该如何解决这个失败?在另一个项目中没有错误,它的工作原理。

this question也是一样......

感谢。

0 个答案:

没有答案
相关问题