weixin_33743248
weixin_33743248
2020-01-13 18:47
采纳率: 0%
浏览 73

在ajax中获取responseText [重复]

This question already has answers here:
                </div>
            </div>
                    <div class="grid--cell mb0 mt4">
                        <a href="/questions/14220321/how-do-i-return-the-response-from-an-asynchronous-call" dir="ltr">How do I return the response from an asynchronous call?</a>
                            <span class="question-originals-answer-count">
                                (38 answers)
                            </span>
                    </div>
            <div class="grid--cell mb0 mt8">Closed <span title="2020-01-13 18:50:58Z" class="relativetime">3 months ago</span>.</div>
        </div>
    </aside>

I just want to get ajax feedback

var result = $.ajax({
                url : 'linkAPI',
                type : 'get',
                dataType: 'JSON'
            });
            console.log(result);

and only responseTEXT appears.

Console.log(result.responseText);

// undefined

</div>

图片转代码服务由CSDN问答提供 功能建议