书签题目为空默认无标题

This commit is contained in:
luchenqun 2017-12-22 09:59:55 +08:00
parent ec1da85efd
commit fbf69483bc
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ var parsehtml = function(file, callback) {
anchors.each(function(i, e) { anchors.each(function(i, e) {
var add_date, name, bookmark, tags, url; var add_date, name, bookmark, tags, url;
url = $(e).attr("href"); url = $(e).attr("href");
name = $(e).text(); name = $(e).text() || "无标题";
add_date = $(e).attr("add_date"); add_date = $(e).attr("add_date");
tags = new Array(); tags = new Array();
$(e).parents("dl").each(function(ii, ee) { $(e).parents("dl").each(function(ii, ee) {