for (r in resArray) {
$(".results li").remove();
var title = resArray[r]._source.title;
var year = resArray[r]._source.year;
var typeOfDrawing = resArray[r]._source.typeOfDrawing;
var code = resArray[r]._source.code;
var loctn = resArray[r]._source.location;
var drawerNumber = resArray[r]._source.drawerNumber;
function getURL() {
planSearch(title);
}
items.push('<li class="reslts" onmouseover="getURL()">' + code + " " + year + " " + loctn + " " + drawerNumber + "<br />" + title + "<br />" + typeOfDrawing + "</a></li>");
$(".results").append(items);
}
当我鼠标悬停时,我收到错误提示“getURL未定义” 我哪里错了?