为什么chrome.bookmarks.search无法搜索文件夹 [英] Why chrome.bookmarks.search not searching folder

查看:95
本文介绍了为什么chrome.bookmarks.search无法搜索文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用"chrome.bookmarks.search"搜索文件夹书签,但没有发现问题.

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.

推荐答案

有一个已知的bug \功能请求,用于搜索文件夹名称

There is a know bug\feature request for searching with folder name, check details and some discussions

使用 chrome.bookmarks.getTree 检索整个书签树.并过滤缺少URL属性的文件夹.

Retrieve entire Book Marks Tree using chrome.bookmarks.getTree and filter folders with missing URL property.

这篇关于为什么chrome.bookmarks.search无法搜索文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆