Here is the meaning of hit on with examples:
Definition1. To flirt with; to approach and speak to (someone), seeking romance, love, sex, etc.
2. To discover, pinpoint; to think up; to realize; to invent.
Example1. Some guys hit on her tonight while she was drinking in the bar.
2. He hit on a great idea for making more money.