我想在单击“闪电输入复选框”时触发Aura方法。我该怎么做?
在下面,我从CMP文件和控制器文件&GT粘贴了代码>
CMP文件>
<div class="slds-p-around_small slds-grid slds-gutters">
<lightning:input class="chkboxPadding" type="checkbox" label="Attestation" name=" " onchange="{!c.checkAuraMethod}" value=""/>
<div >
{!v.applicantSpaceTaskWrapper.capitalLemoine} {!$Label.c.CLV1_Euro}
</div>
</div>
下面的控制器文件&gt;
CheckaUlamethod:功能(组件,事件,助手){ console.log('复选框单击');
我的Onchange活动无法正常工作。控制台日志未显示
Below i am pasting my code from cmp file and controller file>
cmp file>
<div class="slds-p-around_small slds-grid slds-gutters">
<lightning:input class="chkboxPadding" type="checkbox" label="Attestation" name=" " onchange="{!c.checkAuraMethod}" value=""/>
<div >
{!v.applicantSpaceTaskWrapper.capitalLemoine} {!$Label.c.CLV1_Euro}
</div>
</div>
Controller file below >
checkAuraMethod: function(component, event, helper){
Console.log('Checkbox clicked');
my onchange event is not working. console log is not showing
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了自己的自我,这是控制台中的卡列特字母问题。 JS是一种案例敏感的语言,因此我们应该小心。
i found the answer my self , it was the issue of captial letter in console. JS is a case sensitive language so we should be careful.