我试着用"chrome.bookmarks.search“搜索文件夹书签,但什么也没找到。
chrome.bookmarks.search('My folder', function(children) {
children.forEach(function(child) {
console.log(child)
$('#grid').append(child.title);
});
为什么这段代码只搜索书签而不搜索文件夹。
发布于 2013-02-18 18:24:40
对于使用文件夹名、check details和some discussions进行搜索,存在已知错误\功能请求
解决这个问题。
使用chrome.bookmarks.getTree检索整个书签树,并筛选缺少URL属性的文件夹。
https://stackoverflow.com/questions/14931886
复制相似问题