js사용
-
html 에서 javascript 다루기Front/js 2024. 7. 23. 17:59
▤ 목차" data-ke-type="html">HTML 삽입미리보기할 수 없는 소스 ✔ HTML 에서 js(javascript) ⌨ 코드로 보기자바스크립트 연습 이런 식으로 표에 넣을 수 있다. 👏 연습 문제9단까지 구구단을 출력하자.단, table tag를 사용조건1 : 단은 행으로 구분조건2 : 홀수 단은 aqua배경색으로 채우기 ( td가 아닌 tr에 색을 넣자.)조건3 : 모든 계산식이 각 테이블 열에 맞춰 들어가도록 하자. 풀이식더보기 ✔ 외부 js 파일 불러오기 위와 같이 html은 webapp에 존재하고js 파일 속에 js4.js 파일이 존재한다고 가정하자. 위와 같은 코드를 사용하면 선언한 해당 부분에서 js 파일이 들어간다.권장 사항 태그 안에 작성하자. ..