Visualforce 페이지에서 확장 메서드를 호출하려고했습니다.Javascript에서 호출 확장 메서드 Visualforce
<apex:page title="Title" standardController="Account" showChat="true" tabStyle="Account" standardStylesheets="true" showHeader="true" extensions="AccountExtension">
<script type="text/javascript">
Sfdc.onReady(function() {
if({!isTrue}){
// Do Something
}
});
</script>
내 확장 나의 방법 : 오류 : 알 수없는 특성 'AccountStandardController.isTrue'
어떤 생각
public with sharing class AccountExtension {
public boolean isTrue(){
return true;
}
}
내가 그것을 저장하려고
, 내가 메시지를 받고 있어요 ?
당신은 당신의 기능을 이름을 변경한다 'getIsTrue()' –