我想知道是否可以在html页面中的ajax响应中加载Javascript文件,这是代码:
<script src="../assets/plugins/myScript.js" type="text/javascript"></script>
<script type="text/javascript">
myFunc();
function myFunc(){
$.ajax({
type: "POST",
url: "load_page.php",
data: { type:'testA' },
cache: false,
success: function(html){
$("#test_id").html(html);
//here i want reload the script i have import above myScript.js
}
});
return false;
}
</script>