什么都没有,只要我将 lib 更改为 1.3.2,我成功的东西就可以正常工作了吗?怎么会?甚至没有出现带有 TEST 的警报..
这是发生这种情况的代码:
function crop() {
$.ajax({
type: "POST",
dataType: 'json',
url:"functions.php?action=crop",
data:
{
x: $('#x').val(),y: $('#y').val(),w: $('#w').val(),
h: $('#h').val(),fname:$('#fname').val(),fixed:fixed,
sizew:sizew,sizeh:sizeh},
success: function(response)
{
alert('TEST');
if(!fixed) // Missing { }
{
$("#showPhoto").css({overflow:"auto"}); // Missing ;
}
$("#showPhoto").html(
$(document.createElement("img")).attr(
"src",response.filename)).show();
$("#showPhoto").after("There you go...").show();
$("#image").slideUp();
},
error:function(response) {
console.log('error: ', response);
}
});
}
我怎样才能使它与 jquery 1.4.2 库一起使用?