• <bdo id='MGZPo'></bdo><ul id='MGZPo'></ul>
  • <legend id='MGZPo'><style id='MGZPo'><dir id='MGZPo'><q id='MGZPo'></q></dir></style></legend>

      <tfoot id='MGZPo'></tfoot>
      <i id='MGZPo'><tr id='MGZPo'><dt id='MGZPo'><q id='MGZPo'><span id='MGZPo'><b id='MGZPo'><form id='MGZPo'><ins id='MGZPo'></ins><ul id='MGZPo'></ul><sub id='MGZPo'></sub></form><legend id='MGZPo'></legend><bdo id='MGZPo'><pre id='MGZPo'><center id='MGZPo'></center></pre></bdo></b><th id='MGZPo'></th></span></q></dt></tr></i><div id='MGZPo'><tfoot id='MGZPo'></tfoot><dl id='MGZPo'><fieldset id='MGZPo'></fieldset></dl></div>

      1. <small id='MGZPo'></small><noframes id='MGZPo'>

      2. 如何使用 Zurb Foundation 显示打开、打开、关闭、关闭回调函数?

        How to use Zurb Foundation reveal with open, opened, close, closed callback functions?(如何使用 Zurb Foundation 显示打开、打开、关闭、关闭回调函数?)
      3. <i id='BcpGJ'><tr id='BcpGJ'><dt id='BcpGJ'><q id='BcpGJ'><span id='BcpGJ'><b id='BcpGJ'><form id='BcpGJ'><ins id='BcpGJ'></ins><ul id='BcpGJ'></ul><sub id='BcpGJ'></sub></form><legend id='BcpGJ'></legend><bdo id='BcpGJ'><pre id='BcpGJ'><center id='BcpGJ'></center></pre></bdo></b><th id='BcpGJ'></th></span></q></dt></tr></i><div id='BcpGJ'><tfoot id='BcpGJ'></tfoot><dl id='BcpGJ'><fieldset id='BcpGJ'></fieldset></dl></div>
            <tbody id='BcpGJ'></tbody>

          1. <legend id='BcpGJ'><style id='BcpGJ'><dir id='BcpGJ'><q id='BcpGJ'></q></dir></style></legend>

              <small id='BcpGJ'></small><noframes id='BcpGJ'>

              <tfoot id='BcpGJ'></tfoot>
                • <bdo id='BcpGJ'></bdo><ul id='BcpGJ'></ul>

                  本文介绍了如何使用 Zurb Foundation 显示打开、打开、关闭、关闭回调函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在 zurb 基金会的网站 http://foundation.zurb.com/docs/reveal.php 他们列出了一些选项,包括

                  On zurb foundation's website at http://foundation.zurb.com/docs/reveal.php they listed some Options including

                  open:在模式打开之前触发的回调函数.

                  open: callback function that triggers 'before' the modal opens.

                  opened:在模态打开后触发的回调函数.

                  opened: callback function that triggers 'after' the modal is opened.

                  close:在模式准备关闭之前触发回调函数.

                  close: callback function that triggers 'before' the modal prepares to close.

                  关闭:在模式关闭后触发的回调函数.

                  closed: callback function that triggers 'after' the modal is closed.

                  但我不知道如何将它们与我的模态一起使用.我试过了:

                  But I have no idea how to use them with my modal. I tried:

                  $('#myModal').closed(function()
                  {});
                  
                  $('#myModal').trigger('reveal:closed')(
                  {});
                  
                  $('#myModal').reveal.closed(function()
                  {});
                  
                  $('#myModal').reveal().closed(function()
                  {});
                  

                  我在 Google 上搜索过,但没有找到任何匹配结果.任何人都可以解释它或给我一个例子或提供相关链接?

                  I have Googled but found no hits. Anyone who can explain it or give me an example or provide a related link?

                  但是,给出的建议有效对于 reveal(),我还有另一个密切相关的问题:

                  The suggestion given works, however I have yet another closely related question for reveal():

                  <a href="#" class="button" data-reveal-id="myModal2">Click Me For A Modal</a>);
                  

                  我尝试添加一个属性,例如 data-closeOnBackgroundClick="false" 这似乎不起作用.正确的语法应该是什么?它也适用于回调函数吗?

                  I tried to add one attribute like data-closeOnBackgroundClick="false" That doesn't seem to work. What should be the correct syntax? Will it work for callback function as well?

                  推荐答案

                  像往常一样调用 reveal,但将选项名称和对应函数作为对象包含:

                  Call reveal like you normally would, but include the name of the option and corresponding function as an object:

                  //Reveal the modal and say "Good bye" when it closes
                  $("#myModal").reveal({ "closed": function () { alert("Good bye") } });
                  

                  这篇关于如何使用 Zurb Foundation 显示打开、打开、关闭、关闭回调函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Draw border around nontransparent part of image on canvas(在画布上的图像不透明部分周围绘制边框)
                  dragging and resizing an image on html5 canvas(在 html5 画布上拖动图像并调整其大小)
                  What#39;s the difference between a boolean as primitive and a boolean as property of an object?(作为原始对象的布尔值和作为对象属性的布尔值有什么区别?)
                  I want to do animation of an object along a particular path(我想沿特定路径对对象进行动画处理)
                  How to upload image into HTML5 canvas(如何将图像上传到 HTML5 画布中)
                  How to show a running progress bar while page is loading(如何在页面加载时显示正在运行的进度条)

                    <tbody id='LHO0w'></tbody>

                  1. <small id='LHO0w'></small><noframes id='LHO0w'>

                    <i id='LHO0w'><tr id='LHO0w'><dt id='LHO0w'><q id='LHO0w'><span id='LHO0w'><b id='LHO0w'><form id='LHO0w'><ins id='LHO0w'></ins><ul id='LHO0w'></ul><sub id='LHO0w'></sub></form><legend id='LHO0w'></legend><bdo id='LHO0w'><pre id='LHO0w'><center id='LHO0w'></center></pre></bdo></b><th id='LHO0w'></th></span></q></dt></tr></i><div id='LHO0w'><tfoot id='LHO0w'></tfoot><dl id='LHO0w'><fieldset id='LHO0w'></fieldset></dl></div>
                    <tfoot id='LHO0w'></tfoot>
                    • <legend id='LHO0w'><style id='LHO0w'><dir id='LHO0w'><q id='LHO0w'></q></dir></style></legend>
                          <bdo id='LHO0w'></bdo><ul id='LHO0w'></ul>