我在读取并打印json文件时,遇到了如下问题:
Uncaught SyntaxError: Unexpected token >
出问题的代码段如下:
$(function()
{
$("#btn").click(function()
{
$.getJSON("communityRecSys.json",function (data)
{
var $jsontip = $("#jsonTip");
var strHtml = "1 ";
$jsontip.empty();
$.each(data,function (infoIndex,info)
{
console.log(info);
strHtml += "<table>
<tr><td>dsas</td>
<td> // 实际操作中该行报错
<a href='presentation2.php?conferenceID="+info['conferenceID']+"&presentationID="+info['presentationID']+"'>title:"+info["title"]+"</a><br>
Authors:"+info["authors"]+"<br>Types:"+info["type"]+"<br>Track:"+info["contentTrack"]+"<br>
DOI:"+info["DOI"]+"<br>
<hr>
</td>
</tr>
</table>";
});
$jsontip.html(strHtml);
});
});
});
求大神帮我看一下语法上出了什么错误?