난이 형식의 배열이 : 내가 alert(points[1]);
를 사용할 때 ... 주위 몇 HTML 코드가 있기 때문에 내가 분명히 [object object]
를 얻을배열 객체 내부의 텍스트를 검색하는 방법은 무엇입니까?
points.push(
{text: '<span style="font-weight: bold;font-size:25px;">hi</span>'},
{text: '<span style="font-weight: bold;font-size:25px;">hello</span>'},
{text: '<span style="font-weight: bold;font-size:25px;">call</span>'},
{text: '<span style="font-weight: bold;font-size:25px;">crow</span>'});
을
사람이 어떻게 내부의 텍스트를 검색하는 말해 줄 수 이 배열. "hi"또는 "hello"또는 "call"또는 "crow"로만 출력이 필요합니다.
감사합니다.