标签: javascript foreach wait
为什么下面的代码结尾处的$results = \App\Country::join('currencies', 'currencies.id', '=', 'countries.currency_id')->select('countries.*')->orderBy('currencies.name')->get(); 在完成上面的forEach循环之前被执行?
$results = \App\Country::join('currencies', 'currencies.id', '=', 'countries.currency_id')->select('countries.*')->orderBy('currencies.name')->get();
browser.tabs.sendMessage(tab.id, connectionStatus);