Next Experience 클라이언트 측 스크립팅 전역 변수
Next Experience 전역 변수는 클라이언트 스크립트에서 페이지에 적용할지 여부를 Next Experience 결정하는 데 사용됩니다.
- NOW.isUsingPolaris
- 현재 페이지에 적용되면 Next Experience예를 반환합니다.
- NOW.isPolarisWrapper (영문)
- 페이지가 에서 실행 중인 경우 true 를 Next Experience 통합 탐색반환합니다. 이 전역 변수는 통합 탐색.
통합 탐색에 대한 자세한 내용은 사용 Next Experience 통합 탐색 문서를 참조하십시오.
클라이언트 스크립트:
// Reload the current page in the unified navigator if not currently in the unified nav
if (NOW.isUsingPolaris && (!top.NOW || top.NOW.isPolarisWrapper !== "true")) {
var currentPath = window.location.pathname + window.location.search;
top.window.location.href = "/now/nav/ui/classic/params/target/" + encodeURIComponent(currentPath)
}