在页面的源代码中,linked to您拥有以下内容:
<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>
<script src=Óhttps://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.jsÓ type=Ótext/javascriptÓ></script>
在这里,您已经包含了 jQuery 两次,而在第二次包含中,您有一些看起来很奇怪的字符。只需摆脱第二行。
您的 AJAX 调用也是错误的。您有以下内容:
$.ajax({
type: "GET",
url: "get_child.php?pc_id="+pc_id.toString(),
done: function(option) {
alert("done");
},
fail: function(option) {
alert("fail");
},
error: function(jqXHR, textStatus, errorThrown) {
alert(textStatus);
alert(errorThrown);
}
});
应该是:
$.ajax({
type: "GET",
url: "get_child.php?pc_id="+pc_id.toString()
}).done(function(option) {
alert("done");
}).fail(function(option) {
alert("fail");
});