我有一个这种格式的数组:
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>'});
当我使用时,alert(points[1]);
我[object object]
很明显,因为它周围有一些 html 代码......
谁能告诉我如何检索这个数组中的文本。我只需要输出“hi”或“hello”或“call”或“crow”
谢谢你。