<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js">
<script type="text/javascr开发者_Python百科ipt">
$(document).ready(function() {
$.post("ajax.php", function(data) {
alert("Data Loaded");
});
});
</script>
I understand that this code does nothing useful, but why does nothing happen? The php doesn't run, and the alert doesn't show.
Your first SCRIPT element is missing its closing tag </script>
, which leads to the whole code being just ignored.
精彩评论