250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- effect
- php
- 백엔드
- 프론트엔드
- html5
- css3
- 자바스크립트
- 애니메이션
- javascript
- react
- SWIFT
- image
- CSS
- button
- 비전공자
- iPhone
- iOS 개발자
- IOS
- ipad
- hover
- HTML
- 풀스택
- jQuery
- front-end
- Animation
- xcode
- keyframes
- 개발자
- 비전공 개발자
- MAC
Archives
- Today
- Total
비전공자 개발일기
JQuery 1 - 기본 문법 본문
728x90
SMALL
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<title>JQuery 기본 문법</title>
<script>
$(function() {
$("p").on("click", function(){
$("p").css("color", "#00f");
});
});
</script>
<style>
* {
text-align: left;
}
pre{
font-size: 20px;
font-weight: 700;
}
</style>
</head>
<body>
<p>제이쿼리 시작!</p>
<p>마우스 클릭!</p>
<p>JQuery: 오픈 소스 기반의 자바스크립트 라이브러리</p>
<pre style="border: 1px solid;">
제이쿼리의 기본 문법
ㄴ$(선택자).동작함수();
「window.onload = function() { 자바스크립트 코드; };」
= 「$(document).ready(function() {제이쿼리 코드;});」
= 「$(function() {제이쿼리 코드;});」
</pre>
</body>
</html>
728x90
LIST