为什么步伐装载机在MVC中失败? [英] Why pace loader getting failure in MVC?

查看:75
本文介绍了为什么步伐装载机在MVC中失败?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在标题的下方链接了以下脚本,但没有加载速度..为什么?



I linked below scripts in just below of the header but not getting load the pace..why?

<script src="~/Assets/Matronic/global/plugins/pace.min.js"></script>
   <!-- END PAGE FIRST SCRIPTS -->
   <!-- BEGIN PAGE TOP STYLES -->
   <link href="~/Assets/Matronic/global/plugins/pace-theme-flash.css" rel="stylesheet" />





我的尝试:



甚至在索引页面中尝试过如下所示..然后alos无法正常工作。





What I have tried:

and even tried in index page to like below..then alos cannot working.

@section Scripts
{
    <!-- BEGIN PAGE FIRST SCRIPTS -->

    <script src="~/Assets/Matronic/global/plugins/pace.min.js"></script>
    
    <link href="~/Assets/Matronic/global/plugins/pace-theme-flash.css" rel="stylesheet" />
}

推荐答案

使用Url.Content



< a href =https://dejanvasic.wordpress.com/2013/03/26/generating-full-content-url-in-mvc/>在MVC中生成完整的内容网址 - Dejan Vasic [ ^ ]
Use Url.Content

Generating full Content URL in MVC – Dejan Vasic[^]


对不起,伙计们,我有错误..在任何地方链接另一个装载机。所以这是冲突的..
Sorry guys, I had mistake..was linked another loader any where. so that was conflicted..


这篇关于为什么步伐装载机在MVC中失败?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆