我需要在這行代碼中再加一個眼睛,我想讓它成爲一個超鏈接並且通過代理id,儘管我沒有看到超鏈接出現。有人可以看看,謝謝。在ASP中製作一個超鏈接
$('#agency' + parentAgency.id).append(
'<li id="listItem' + agency.id + '" data-level="' +
agency.level + '" data-position="' + agency.position + '">'
+ '<a href="agency.aspx?agencyid="' + agency.id + '>' + agency.name
+ '</a>' + '</li>');
請上傳您的完整代碼 –
這是一個單擊處理?你可以''console.log(parentAgency.id)'然後'console.log($('#agency'))''與parentId確保你的選擇器正在工作? –
xdumaine