📅  最后修改于: 2022-03-11 15:02:34.960000             🧑  作者: Mango
var xmlString = "Lakeway LAKE MAIN ",
xmlDoc = $.parseXML( xmlString ),
$xml = $( xmlDoc ),
$abrv = $xml.find( "abrv" ).text() == "LAKE" ? $xml.find( "abrv" ) : false;
var time = $abrv.next().children("time").text();
var dest = $abrv.next().children("dest").text();
alert(time + " " + dest);