我有这段代码
$.ajax({
type: "GET",
url: "/api/forums/getForums",
contentType: "application/json;charset=utf-8",
dataType: "json",
success: function (data) {
var toAppend = '';
for (var i = 0; i < data.length; i++) {
toAppend += '<option>' + data[i]['Name'] + '</option>';
toAppend += '<a href="AddForum.html">Add new forum</a>';
}
$("#forums").append(toAppend)
}
});
这就是我得到的
&#39;添加新论坛&#39;应该是链接,但不是,它只是常规文本,我无法点击它。我究竟做错了什么?