Related questions
Question 394 - H14-231_V1.0 discussion
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);
A.
action.ability Type= ABILITY_TYPE_INTERNAL;
B.
action.abiltyType =ABILITY_TYPE;
C.
const ABILITY_TYPE_INTERNAL=1;
D.
const ABILITY_TYPE_EXTERNAL= 2;
Your answer:
0 comments
Sorted by
Leave a comment first