在 2sxc13 中从 DNN 加载 JQuery
有没有办法从 razor 模板中的 DNN 安装加载 JQuery 库,而不加载外部链接或文件的相对路径? 像@include(jquery)之类的东西。如果它检查它是否已经加载就更好了。
Is there a way to load JQuery library from the DNN install in a razor template without loading external links or relative paths to the file?
Something like @include(jquery). Even better if it checks if it is already loaded.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这可以在 2sxc 中完成;)
另请参阅 https: //docs.2sxc.org/net-code/razor/services/page-service-activate.html
This can be done in 2sxc ;)
See also https://docs.2sxc.org/net-code/razor/services/page-service-activate.html
如果您的皮肤/主题加载查询,则您已经拥有它。检查可用的代码片段和/或检查附带的应用程序,看看 2sic 人员是如何做到这一点的。
If your skin/theme loads query you already have it. Check the available snippets and/or check the included apps to see how the 2sic folks do it.