Могу ли я спросить, может ли jquery ajax загрузить метод, используемый для загрузки изображения, ниже мой код, и он не работает, кто-нибудь может это исправить?
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("div").ajaxStart(function(){
$(this).html("<img src='http://www.w3schools.com/jquery/demo_wait.gif' />");
});
$("button").click(function(){
$("div").load("http://www.google.com/images/logos/ps_logo2.png/");
});
});
</script>
</head>
<body>
<div><h2>Let AJAX change this text</h2></div>
<button>Change Content</button>
</body>
</html>