我正在將html附加到ajax成功函數上的<ul>
。Ajax成功將HTML添加到fadeIn()
HTML
<ul id="revisionList">
<!-- ajax.js will insert ordered list here based on number of revisions -->
</ul>
阿賈克斯成功
success: function(json)
{
/*
If successful build the list of revision links
Links include link that will load images in next tab
*/
//loop through revisions and display
for(i = 0, j = json.revision_count.length; i < j; i++) {
//count for revision number
var k = i + 1;
//revision number, does not match k
var revisionID = json.revision_count[i].layout;
$('#revisionList').append(
"<li><a onclick=\"initEditRevision(" + galleryID + ',' + revisionID + ")\" href=\"#editRev\" data-toggle=\"tab\">Revision " + k + "</a></li>"
);
}
}
如何去列表建成後整個<ul>
褪色?
你爲什麼躲在for循環中!它正在反覆做 – epascarello
@epascarello ..謝謝指出它..在看過去:) –