且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从文件html加载脚本标签

更新时间:2023-12-04 23:34:10

这是正确的代码

<script type="text/javascript">
$(document).ready(function(){
  $("#register_reg").click(function(){
    $("#register_form").load("test_test.php #register_rules", function() { 
        $("#register_form").append("<script type='text/javascript' src='jquerycode.js'></" + "script>"); 
    });
  });
});
</script>