jQuery.load()调用不会在加载的HTML文件中执行JavaScript
$("#myBtn").click(function() {
$("#myDiv").load("trackingCode.html");});trackingCode.html
<html><head>
<title>Tracking HTML File</title>
<script language="javascript" type="text/javascript">
alert("outside the jQuery ready");
$(function() {
alert("inside the jQuery ready");
});
</script></head><body></body></html>trackingCode.html
trackingCode.html
阿晨1998
富国沪深