JQuery + DotNetNuke 中的 JCrop 问题
我正在使用 dnn 6。它有文件 dotnetnuke/js/dnn.jquery.js 所以我创建了一个模块并添加了对此 jquery 文件和所有其他 JCrop 文件的引用,但它不起作用。
所以我添加了官方的JQuery.js,但是dnn找不到一些方法。
有人用过 JCrop 和 DotNetNuke 吗?
I am using dnn 6. It has file dotnetnuke/js/dnn.jquery.js so I created a module and added reference to this jquery file and all others JCrop files and it doesn't work.
So I added official JQuery.js but then dnn can't find some methods.
Is there anybody who has used JCrop with DotNetNuke?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要从 DotNetNuke 引用 jQuery,请调用
DotNetNuke.Framework.jQuery.RequestRegistration()
。这将使用共享的 jQuery 引用(以便 jQuery 在页面上仅出现一次,在
中,无论有多少扩展请求它)。
如果您使用的是 jQuery 6.1,则应使用 客户端资源管理 API 来请求其他脚本,如下所示:
To reference jQuery from DotNetNuke, call
DotNetNuke.Framework.jQuery.RequestRegistration()
. This will use the shared jQuery reference (so that jQuery is on the page exactly once, in the<head/>
, regardless of how many extensions ask for it).If you're using jQuery 6.1, you should use the Client Resource Management API to request other scripts, with something like this: