$.ajax({
type: "POST",
url: "querySysNoteByParam.do?rows=5",
dataType: "json",
async: false,
success: function(data) {
var list = $("#list-tpl").html(),
item = $("#item").html();
var row = "";
var $tab = $(".note-list");
$.each(buildData(data), function(i, n) {
var temp = "";
$.each(n.data, function(a, b) {
temp += item.replace(/\$itemTitle/g, StringUtils._encodeHTML((StringUtils.getStrLength(b.noteTitle) > 16 ? (b.noteTitle.substring(0, 16) + "...") : b.noteTitle)))
.replace(/\$Titlelong/g, StringUtils._encodeHTML(b.noteTitle))
.replace(/\$id/g, b.id)
.replace(/\$dateTime/, b.publishDate.substring(0, 10));
});
row += list.replace(/\$title/g, n.title).replace(/\$list/, temp).replace(/\$noteType/g, n.noteType);
})
$tab.html(row);
}
});