Internet Explorer中的jQuery(Ajax)问题

时间:2010-10-30 09:22:26

标签: jquery ajax

守则 -

$.ajax({
    url: "edit.php",
    success: function(html)
    {
     $("#last").html(html).hide().slideDown('slow');
         alert("hello");
    }
});

Mozilla表现得很好。 IE(正常PMS * )不会将任何内容加载到#last但显示警报的情况下,可能是什么问题?

我认为javascript与浏览器无关?

1 个答案:

答案 0 :(得分:1)

网址周围缺少引号:

$.ajax({
    url: 'edit.php',
    success: function(html) {
        $('#last').html(html).hide().slideDown('slow');
        alert('hello');
    }
});