xiàng​jī'ér​xíng

to act as circumstances require