如何将 getProjectssexy(1) 更改为我需要 getProjectssexy(0)、getProjectssexy(1) 等的每个元素的编号(取决于 tmpArray.length)
$('allarray', data).each(function(){
tmpArray = $('array', this).toArray();
var table = document.getElementById("tleft");
table.innerHTML = "";
for(i =0; i<tmpArray.length; i++) {
table.innerHTML += "<div class='two'>" +
"<a href='#' onclick='getProjectssexy(1 - need to change i for every loop)'>" +
tmpArray[i].getAttribute("id") + "</a>" +"</div>" + "</br>";
}
});