Field.fieldTypeKind返回的是Invalid
[解决方法]
There is no "Metadata" type of field in the SP.FieldType Enumeration, so it would return 0(invalid) when try to retrieve SP.Field.fieldTypeKind Property.
If you just want to distinguish the field types, we can use SP.Field.typeDisplayName Property orSP.Field.id Property.