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 に答える