获取当前窗口ID获取当前窗口IDchrome.windows.getCurrent(function(currentWindow){ console.log('当前窗口ID:' + currentWindow.id);});