如何在 javascript 重定向中使用 nyroModal JQuery 插件

发布于 2024-10-10 07:56:48 字数 419 浏览 1 评论 0原文

我正在使用 nyroModal JQuery 插件: http://nyromodal.nyrodev.com/

我想要做什么我希望在 javascript 中重定向的页面在模式窗口中打开。如果您访问上面的链接,则会看到有关该插件使用情况的信息。看起来很简单,但我还是想不通。

简单来说,该插件的用法就是包含 nyroModal 函数。我尝试这样做,但没有成功:

<script language="javascript">
document.location.nyroModal()='redirect.html';
</script>

有什么想法吗?

提前致谢。

I'm using the nyroModal JQuery Plugin: http://nyromodal.nyrodev.com/

What I want to do is I want the page which I redirect in javascript to open in modal window. If you go to the link above there is an information about the usage of the plugin. It looks simple, but I still couldn't figure it out.

And simply, the usage of the plugin is to include nyroModal function. I tried to do this, but didn't work:

<script language="javascript">
document.location.nyroModal()='redirect.html';
</script>

Any ideas?

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小忆控 2024-10-17 07:56:48
$.nyroModalManual({
  url: 'redirect.html'
});

如果您希望在页面加载时发生这种情况,请将其包装在准备好的文档中。

$.nyroModalManual({
  url: 'redirect.html'
});

If you want that to happen when the page loads then wrap it in a doc ready.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文