js调用webservice实例
$.ajax({ type : "POST", url : url, data : soapMessage, contentType : "text/xml", dataType : "xml", success : function(xml){ var left_num = parseInt($(xml).find("return").find("fd_number").text()) - parseInt($(xml).find("return").find("fd_actualNums").text()); //剩余招聘人数 $('#TABLE_DL_fd_32f7b009ec6c6a tr:eq(1) td:eq(1) div').text($(xml).find("return").find("fd_number").text()); //计划需求人数 $('#TABLE_DL_fd_32f7b009ec6c6a tr:eq(1) td:eq(2) div').text($(xml).find("return").find("fd_planNums").text()); //拟录用人数 $('#TABLE_DL_fd_32f7b009ec6c6a tr:eq(1) td:eq(3) div').text($(xml).find("return").find("fd_actualNums").text()); //实际录用人数 $('#TABLE_DL_fd_32f7b009ec6c6a tr:eq(1) td:eq(4) div').text(left_num); //剩余录用人数 }, error : function(XMLHttpRequest, textStatus, errorThrown){} });