|
@@ -36,7 +36,7 @@ function getInfomation() {
|
|
|
document.title = showName
|
|
|
var str = '';
|
|
|
var anchors = '';
|
|
|
- var item = '';
|
|
|
+
|
|
|
if (!data) {
|
|
|
$("h1").html("暂时没有数据");
|
|
|
$(".anchors").css("display", "none");
|
|
@@ -70,7 +70,7 @@ getInfomation();
|
|
|
|
|
|
function renderContent(list, contentWrapClassName){
|
|
|
for (var i = 0; i < list.length; i++) {
|
|
|
- item = list[i];
|
|
|
+ var item = list[i];
|
|
|
item.content = item.content&&item.content.replace(/{imageUrlPrefix}/g, imageUrlPrefix);
|
|
|
anchors = '<li><i></i><a href="#' + item.title +
|
|
|
'">' + item.title + '</a></li><li class="anchor-line"></li>';
|