The present invention relates to an azetidine derivative for use as a Janus kinase (JAK) inhibitor, a drug composition comprising same, a preparation method therefor, and a use thereof in the treatment of JAK-related diseases comprising, for example, inflammatory diseases, autoimmune diseases, and cancers.