这里是我的javascript代码:加载PHP内容从JS
$(document).ready(function(){
$('#start').click(function(){
$('#mainbody').html('<?php include "content1.php";?>');
});
});
,而不是在DOM content1.php加载内容它增加了这样的评论:
<div class="row" id="mainbody">
<!--?php include "content1.php";?-->
</div>
AJAX ...阅读它。 – Shomz
这个问题似乎是脱离主题,因为它是一个超级重复。 OP对本网站上的其他用户没有任何怜悯,无论其他人做过什么工作,都必须反复提问。 – hakre