cookie (n.)youdaoicibaDictYouDict[cookie 词源字典]
1703, American English, from Dutch koekje "little cake," diminutive of koek "cake," from Middle Dutch koke (see cake (n.)). Slang application to persons attested since 1920. Phrase that's the way the cookie crumbles "that's the way things happen" is from 1957.[cookie etymology, cookie origin, 英语词源]