結果 : javascript run after function completes