0

我的 jquery ajax 代码是这样的

 $(".head-text").live('click', function (event) {

        var url = new URI().addQuery("showlist", 1);
        $.ajax({
            url: url, type: "GET"
            , success: function (data) {

                var $response = $(data);
                alert($response.html);
            }
        });
        return false;

    });

并且警报始终显示此消息

 function ( str ) {
    if ( typeof str != 'undefined' )
    {
      if ( this.data( 'dotdotdot' ) )
      {
        if ( typeof str != 'function' )
        {
          return this.trigger( 'update', [ str ] );
        }
      }
      return _orgHtml.call( this, str );
    }
    return _orgHtml.call( this );
    }

我不明白出了什么问题或这意味着什么。我只想查看结果 html。

4

1 回答 1

6

你忘了(). 所以你得到了.html()方法的源代码。

alert( $response.html() );
于 2013-02-08T09:08:55.460 回答