重大决策听证
function GetText(sID, Did) { var resulText = document.getElementById(sID).innerHTML; var pattern = /]*>[^<]*<\/a>/ig; var patternSpan = /]*>[^<]*<\/span>/ig; var strArray = resulText.match(pattern); var strSpanArray = resulText.match(patternSpan); var str = ""; for (var i = 0; i < strArray.length; i++) { if (strSpanArray != null) { str += "
  • " + strArray[i] + "" + strSpanArray[i] + "
  • " } else { str += "
  • " + strArray[i] + "
  • " } } document.getElementById(Did).innerHTML =str; } function SetText() { var length = $("#zdjctz li a").length; if (length > 0) { for (var i = 0; i < length; i++) { var str = $("#zdjctz li a")[i].innerText; $("#zdjctz li a")[i].title = str; if (str.length >= 18) { str = str.substring(0, 18) + ".."; } $("#zdjctz li a")[i].innerText = str; } } } function OnLoadYGZFSXZD() { GetText("zdjctz", "zdjctz"); SetText(); }