weixin_33716941 2014-11-19 15:56 采纳率: 0%
浏览 13

Ajax responseText的一部分

Can you please tell me how to obtain a certain part from ajax responseText?

Example:

<div id="first">Text1<div>
<div id="second">I want to use this text<div>
<div id="third">Text 3<div>

I thought about passing the responseText to a div, and then accessing it with document.getElementById('id'), but i thing there are better ways.

  • 写回答

0条回答 默认 最新

    报告相同问题?