見機行事

Simplified: 见机行事

jiànjīxíngshì ㄐㄧㄢˋ ㄐㄧ ㄒㄧㄥˊ ㄕˋ

    • to play it by ear
    • to use one's discretion

Character by character

Sources