Q&A

댓글 4

  • 2024.05.03 07:11 #1822335
    템플릿 등 php 코드 -> Context::get('mid')값을 비교하면 됩니다.
    자바스크립트 -> current_mid 값을 비교하면 됩니다.
  • 2024.05.03 10:27 #1822355
    정확한 답변 감사드립니다~^^
  • 2024.05.03 12:30 #1822368
    <!--@if($mid == 'shoe')--> 색상 <!--@end-->
  • 2024.05.03 13:18 #1822377
    var lastSegment = url.substring(url.lastIndexOf('/') + 1);

    if (lastSegment === 'shoe') {
    // 특정 부분의 색상 변경 로직
    document.body.style.backgroundColor = "red"; // 예시로 body의 배경색을 빨간색으로 변경
    }