<script src="jquery.js"></script>
<script>
function loadContent() {
$("#includedContent").load("../Projects/menu.html"); // Not working
}
</script>
<div id="includedContent"></div>
<script>
loadContent()
</script>
答案 0 :(得分:0)
$(document).ready(function(){
$('#includedContent').load("../Projects/menu.html", function() {
//stuff
});
});