Exam Name: | HCIP-HarmonyOS Application Developer V1.0 | ||
Exam Code: | H14-231_V1.0 Dumps | ||
Vendor: | Huawei | Certification: | Huawei Certification |
Questions: | 695 Q&A's | Shared By: | agnes |
The library file is the third-party code that the application depends, which are the correct ways to use the following library files?
When a developer designs a JavaScript login page, he needs to use Internal Ability to call Data Abiliity to verify the username and password, which of the following can be modified to complete the function?
const ABILITY_TYPE_EXTERNAL=0;
var action=0;
action.bundleName="com.huawei.loginservice"; action.abilityName="com.huawei.loginservice.LoginDataAbility";
action.messageCode=ACTION_MESSAGE_CODE_PLUS;
action.data=actionData;
action.abilityType=ABILITY_TYPE_EXTERNAL; action.syncOption=ACTION_SYNC;
var result=await
FeatureAbility.callAbility(action);