有两个函数,function1()和function2(),现在我想先让function1()执行,等function1()执行完后再执行function2(),function1()里面有个for循环,应该怎么样写呢????求大神帮助!!!