Please indicate the source when reprinting: Jquery reads xml
xml:
全勤 F 出差 D 差旅途中 T
Jquyery
var option = "";
$.get('../Handler/AttendanceStatus.xml', function (d) { $(d).find('values').each(function () { var $val = $(this); var el = $val.find("el").text(); var des = $val.find("content").text(); option += ""; //alert(option); }); strAttendanceStatusSelect = ""; //alert(strAttendanceStatusSelect); });
The above is the content of Jquery reading xml. For more related content, please pay attention to the PHP Chinese website (m.sbmmt.com)!