PropertyEventMethod찾아보기
$w.top - 5.0_1.3521B.20190311.114514

최상위 웹스퀘어 객체의 사용자 정의 정보를 관리한다. 화면 전환시 WebSquare객체도 새로 생성 되기 때문에, $w.top에 설정된 정보도 초기화 됩니다.

Type

engine

Property Summary

Event Summary

Method Summary

getAttribute( key )
최상위 웹스퀘어 객체의 사용자 정의 값을 가져옵니다
removeAttribute( key )
최상위 웹스퀘어 객체의 사용자 정의 값을 삭제합니다
removeSession( )
최상위 웹스퀘어 객체의 사용자 정의 정보, 전체를 삭제합니다
setAttribute( key , value )
최상위 웹스퀘어 객체의 사용자 정의 정보 값을 설정합니다

Property Detail

Event Detail

Method Detail

getAttribute( key )
최상위 웹스퀘어 객체의 사용자 정의 값을 가져옵니다.
Parameter
nametyperequireddescription
keyStringY브라우저 세션에서의 키값
Return
typedescription
ObjectretType에 해당하는 인스턴스
Sample
$w.top.getAttribute( "custInfo" );
removeAttribute( key )
최상위 웹스퀘어 객체의 사용자 정의 값을 삭제합니다. 기존에 저장된 값은 return으로 반환합니다.
Parameter
nametyperequireddescription
keyStringY브라우저 세션에서의 키값
Return
typedescription
Object삭제된 세션의 값
Sample
$w.top.removeAttribute( "custInfo" );
removeSession( )
최상위 웹스퀘어 객체의 사용자 정의 정보, 전체를 삭제합니다.
Sample
$w.top.removeSession();
setAttribute( key , value )
최상위 웹스퀘어 객체의 사용자 정의 정보 값을 설정합니다. 기존 값이 존재하면 덮어쓰여집니다.
Parameter
nametyperequireddescription
keyStringY브라우저 세션에서의 이름
valueStringY브라우저 세션에서의 키값
Sample
$w.top.setAttribute("userName", "홍길동");