问题
I'm try search folder bookmarks with "chrome.bookmarks.search" but not found enything.
chrome.bookmarks.search('My folder', function(children) {
children.forEach(function(child) {
console.log(child)
$('#grid').append(child.title);
});
Why this code search only bookmarks and not folder.
回答1:
There is a know bug\feature request for searching with folder name, check details and some discussions
Work Around.
Retrieve entire Book Marks Tree using chrome.bookmarks.getTree and filter folders with missing URL property.
来源:https://stackoverflow.com/questions/14931886/why-chrome-bookmarks-search-not-searching-folder