chrome.omnibox.onInputChanged.addListener(function(text, suggestionsCallback){
....
$.get(url_base + text, function(data){
....
suggestionsCallback(suggest_results);
In my callback closure "suggestionCallback" takes no effect. But if I put this callback line outside of the closure, the line just works fine.
这是 Chrome吗? 或者,我是否误解了什么?