블로그 복구
Categories :
Tutorial
2019-05-24
- test
- tags
- class명 제거
- lib 추가
- lib.html 생성
- head.html에 lib.html include
- alert
- log test
- hover
- a요소 값 읽기
- jquery attr();
- a").attr('value');"> $("nav>a").attr('value');
- text 테스트
- assign test
- a태그 아이디 동적 할당
- id 및 nav.name 값 비교 확인
- TagName nav.name 비교
- jQuery 아이디
- 쌍따옴표 제거 샵 제거 플러스 변수 제거 화살표 샾 제거 변수 제거 변경
- append remove test
블로그 정상화 확인 테스트 중입니다.
nav.html a링크의 class=”deploy hover”를 제거하였습니다.
lib폴더 및 jquery 라이브러리 파일을 추가하고 확인합니다.
_include 폴더에 lib.html을 생성하고 확인합니다.
head.html 에 lib.html 파일을 include 합니다.
nav.html 파일에
$(“nav>a”).hover(function(){ console.log(“hover test”); });
코드를 nav.html에 추가하였습니다.
var name = $(“nav>a”).value; console.log(); console.log(“name : “+name);
$(this).attr(); 테스트
var name = $(“nav>a”).attr(‘value’); 테스트
var name = $(“nav>a”).text(); 테스트