在Ajax檢索的<div>內(nèi)部執(zhí)行<script>有一個名為“內(nèi)容”的div:<div id="content"></div>它應(yīng)該由Ajax填充來自PHP文件的數(shù)據(jù),包括<script>標(biāo)簽。但是,沒有執(zhí)行此標(biāo)記中的腳本。<div id="content"><!-- After AJAX loads the stuff that goes here -->
<script type="text/javascript">
//code
</script>
<!-- More stuff that DOES work here --></div>
在Ajax檢索的<div>內(nèi)部執(zhí)行<script>
胡子哥哥
2019-06-25 14:47:18