Jus*_*ony 2 google-chrome-extension
我正在尝试使用chrome.tabs.query作为标题。但是,如果我查看文档,似乎匹配模式仅适用于 URL?我尝试的每种模式都不起作用
这是代码:
chrome.tabs.query({'title':searchText}, function(tabArray){
tabbr.update(tabArray);
});
Run Code Online (Sandbox Code Playgroud)
匹配模式应该是通配符字符串:
chrome.tabs.query({'title': '*string*'}, function(tabArray){
tabbr.update(tabArray);
});
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1334 次 |
| 最近记录: |