<div id = "board_code">
<div>
<span>r</span>
<span>o</span>
<span>w</span>
<span>1</span>
</div>
<div>
<span>r</span>
<span>o</span>
<span>w</span>
<span>2</span>
</div>
</div>
我正在尝试将字符串“ 2 ”用于与 { [ ( < ' " 之类的字符进行比较
我试过这个:
alert($('#board_code > div').eq(1).eq(3).text();
output is: blank
当我尝试这个时:
alert($('#board_code > div').eq(1).eq(0).text();
output is: row2