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

    <tfoot id='FvgN6'></tfoot>
      <bdo id='FvgN6'></bdo><ul id='FvgN6'></ul>
  2. <small id='FvgN6'></small><noframes id='FvgN6'>

  3. <legend id='FvgN6'><style id='FvgN6'><dir id='FvgN6'><q id='FvgN6'></q></dir></style></legend>
    1. 一键关闭一个模态并打开一个新模态

      close one modal and open a new modal with one button(一键关闭一个模态并打开一个新模态)
      <tfoot id='EVJZy'></tfoot>
          <bdo id='EVJZy'></bdo><ul id='EVJZy'></ul>

                <tbody id='EVJZy'></tbody>

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

                <legend id='EVJZy'><style id='EVJZy'><dir id='EVJZy'><q id='EVJZy'></q></dir></style></legend>
                本文介绍了一键关闭一个模态并打开一个新模态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在使用 bootstrap 并且有一个 one 模态,我希望有一个指向 另一个 模态的链接.我似乎无法弄清楚这一点,目前我正在使用 modal.close().modal('show') 但这不起作用.

                I am using bootstrap and have a one modal that I would like to have a link on to another modal. I can't seem to figure this out and currently I am using the modal.close()and .modal('show') but that is not working.

                $('a#to3heart').click(function(){
                    $('#portfolioModal2').modal({onShow: function (dialog) {
                        $.modal.close()
                        $('#portfolioModal1').modal('show'); 
                            return false;
                        }
                    });
                });
                

                推荐答案

                使用:

                $("#modal1").modal('hide');
                $("#modal2").modal('show');
                

                请参阅:http://getbootstrap.com/javascript/#modals

                演示:http://jsfiddle.net/5qCm9/

                这篇关于一键关闭一个模态并打开一个新模态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                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(如何在页面加载时显示正在运行的进度条)

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

                    <legend id='Da2k4'><style id='Da2k4'><dir id='Da2k4'><q id='Da2k4'></q></dir></style></legend>

                    1. <tfoot id='Da2k4'></tfoot>
                    2. <i id='Da2k4'><tr id='Da2k4'><dt id='Da2k4'><q id='Da2k4'><span id='Da2k4'><b id='Da2k4'><form id='Da2k4'><ins id='Da2k4'></ins><ul id='Da2k4'></ul><sub id='Da2k4'></sub></form><legend id='Da2k4'></legend><bdo id='Da2k4'><pre id='Da2k4'><center id='Da2k4'></center></pre></bdo></b><th id='Da2k4'></th></span></q></dt></tr></i><div id='Da2k4'><tfoot id='Da2k4'></tfoot><dl id='Da2k4'><fieldset id='Da2k4'></fieldset></dl></div>
                      • <bdo id='Da2k4'></bdo><ul id='Da2k4'></ul>
                          <tbody id='Da2k4'></tbody>