目录

huks.isKeyItemExist和huks.hasKeyItem的区别

huks.isKeyItemExist:若密钥存在,data为true,若密钥不存在,则error中会输出密钥不存在的error code。开发者需要通过错误码判断密钥不存在,不符合逻辑习惯。建议使用hasKeyItem接口。

huks.hasKeyItem:若密钥存在,返回值为true,若密钥不存在,返回值为false。