Laughing at someone's jokes may be one of the most effective ways to flirt, and most people find a good sense of humor attractive, research suggests.