Colloquial. Often used to dismiss something or downplay losses: 只当吃亏 ('just treat it as a loss'), 只当没听见 ('act as if you didn't hear'). In Taiwan, also pronounced zhǐdāng.
register
Conversational; slightly older feel. In modern speech, 就当 (jiùdàng) is increasingly common with the same meaning.