我使用jquery将html页面(比如b.html)包含到html页面(a.html)中,b.html页面中包含6个链接..我想在php内容下面显示它们.html,但在php内容加载b.html之前显示。如何才能获得php下面的html页面?
<script>(a.html)
jQuery(document).ready(function(){
$("#includedContent").load("/templates/default/property/tab.html");
});
</script>
in html page (a.html)
<div id="includedContent"></div>
答案 0 :(得分:0)
我认为您的问题可以通过ajax解决
<script>(a.html)
$(document).ready(function(){
$.ajax({
type: "POST",
url: '/templates/default/property/tab.html',
//or b.html
data: form_field,
success: function(d){
$('#includedContent').html(d);
},
});
});
</script>
in html page (a.html)
<div id="includedContent"></div>