結果 : javascript execute function if exists