the thought crosses someone's mind idiom
(某人的)头脑中闪过…念头
If the thought of (doing) something crosses someone's mind, they think about it for a short time.
The thought had crossed my mind that I might need some help with the project. 我脑中曾闪过这样的念头,关于这个项目我可能需要帮助。