1

查看页面网址:

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(未找到)

预期的网址

localhost:4574/Content/tinymce/jscripts/..../langs/en.js localhost:4574/Content/tinymce/jscripts/..../editor_template.js

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

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

这个问题也是一样的...

谢谢。

4

0 回答 0