에서 자바 스크립트와 CSS를 그 Html.AppendScriptParts("~/Scripts/jquery-1.10.2.min.js",false,true);
3.80 nopcommerce 청산 차단 내가 좋아하는 nopcommerce 3.80에 <code>Html.AppendScriptParts</code> 방법의 "비동기"속성을 사용하고 스크롤없이 볼 수있는 내용
(... 세븐에서 오는 플러그인을 스파이크 NIVO 슬라이더, 아약스 필터) 그러나 웹 사이트의 다른 기능에 효과를 보인다 내가 예상된다 nopcommerce에서 번들링 기능. 지금 내 장면 목록에서 가장 좋은 솔루션이 무엇인지 말해 주실 수 있습니까? 도움이 매우 적절합니다. 정말 고마워요.
@using Nop.Core.Domain.Common;
@using Nop.Core.Domain.Seo
@using Nop.Core.Infrastructure;
@{
var displayMiniProfiler = EngineContext.Current.Resolve<Nop.Core.Domain.StoreInformationSettings>().DisplayMiniProfilerInPublicStore;
Html.AppendScriptParts("~/Scripts/public.ajaxcart.js");
Html.AppendScriptParts("~/Scripts/public.common.js");
Html.AppendScriptParts("~/Scripts/jquery-migrate-1.2.1.min.js");
Html.AppendScriptParts("~/Scripts/jquery-ui-1.10.3.custom.min.js");
Html.AppendScriptParts("~/Scripts/jquery.validate.unobtrusive.min.js");
Html.AppendScriptParts("~/Scripts/jquery.validate.min.js");
Html.AppendScriptParts("~/Scripts/jquery-1.10.2.min.js",false,true);
var commonSettings = EngineContext.Current.Resolve<CommonSettings>();
if (commonSettings.RenderXuaCompatible)
{
Html.AppendHeadCustomParts(string.Format("<meta http-equiv=\"X-UA-Compatible\" content=\"{0}\"/>", commonSettings.XuaCompatibleValue));
}
var seoSettings = EngineContext.Current.Resolve<SeoSettings>();
if (!string.IsNullOrEmpty(seoSettings.CustomHeadTags))
{
Html.AppendHeadCustomParts(seoSettings.CustomHeadTags);
}
}
<!DOCTYPE html>
<[email protected](this.ShouldUseRtlTheme() ? Html.Raw(" dir=\"rtl\"") : null) @Html.NopPageCssClasses()>
<head>
<title>@Html.NopTitle()</title>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<meta name="description" content="@(Html.NopMetaDescription())" />
<meta name="keywords" content="@(Html.NopMetaKeywords())" />
<meta name="generator" content="nopCommerce" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
@Html.NopHeadCustom()
@Html.Partial("Head")
@Html.Widget("head_html_tag")
@Html.NopCssFiles(this.Url, ResourceLocation.Head)
@Html.NopScripts(this.Url, ResourceLocation.Head)
@Html.NopCanonicalUrls()
@Html.Action("RssHeaderLink", "News")
@Html.Action("RssHeaderLink", "Blog")
@Html.Action("Favicon", "Common")
@if (displayMiniProfiler)
{
@StackExchange.Profiling.MiniProfiler.RenderIncludes()
}
</head>
<body>
@RenderBody()
@Html.NopCssFiles(this.Url, ResourceLocation.Foot)
@Html.NopScripts(this.Url, ResourceLocation.Foot)
</body>
</html>
콘솔을 확인 했습니까? 어떤 오류가 있습니까? –
네, 그랬습니다. 거의 오류입니다 : "Uncaught ReferenceError : jQuery가 정의되지 않았습니다". 콘솔에 오류에 대한 스크린 샷을 첨부했습니다. 감사합니다. –
감사합니다 @Div, 내 웹 사이트 URL을 보여 주실 수 있으며 귀하의 솔루션이 무엇인지 알려주십시오. –