栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

动态将信息加载到Twitter Bootstrap模式

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

动态将信息加载到Twitter Bootstrap模式

这是解决方案,

<a href="#" id="1" >click</a>

在你的情态身体上使用div,就像这样

    <div >  <div  >         // here you can show your output dynamically   </div>    </div>

现在,

.something
通过调用ajax
将数据放入。请检查http://api.jquery.com/jQuery.ajax/以了解有关jquery
ajax的更多信息。

   $(function(){   $('.push').click(function(){      var essay_id = $(this).attr('id');       $.ajax({          type : 'post',url : 'your_url.php', // in here you should put your querydata:  'post_id='+ essay_id, // here you pass your id via ajax .          // in php you should use $_POST['post_id'] to get this value        success : function(r){   // now you can show output in your modal    $('#mymodal').show();  // put your modal id   $('.something').show().html(r);}    });});   });


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/430380.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号