The invention relates to a nitrogen-containing heteroaromatic derivative regulator, its preparation method and application. In particular, the present invention relates to the compound represented by general formula (I), its preparation method and pharmaceutical composition containing the compound, and its use as a Janus kinase (JAK) inhibitor in the treatment of inflammatory diseases and tumor diseases , Wherein each substituent in the general formula (I) has the same definition as in the specification.本發明涉及含氮雜芳類衍生物調節劑、其製備方法和應用。特別地,本發明涉及通式( I )所示的化合物、其製備方法及含有該化合物的藥物組合物,及其作為Janus激酶(JAK)抑制劑,在治療治療炎症性疾病和腫瘤疾病的用途,其中通式( I )中的各取代基與說明書中的定義相同。