Curso de jquery: iniciacion
Vamos a ir aรฑadiendo una serie de entradas para que conozcas un poco sobre el lenguaje jquery, esta es la primera, esperamos que te guste.
https://amdisenoweb.es/curso-jquery-introduccion/ย
seen from Philippines
seen from United Kingdom

seen from United States

seen from Argentina
seen from Russia
seen from Barbados
seen from United Kingdom

seen from France
seen from United States

seen from Malaysia
seen from United States

seen from United Kingdom
seen from United Kingdom
seen from United States
seen from Russia
seen from United States

seen from France

seen from United Kingdom
seen from Tรผrkiye
seen from Tรผrkiye
Curso de jquery: iniciacion
Vamos a ir aรฑadiendo una serie de entradas para que conozcas un poco sobre el lenguaje jquery, esta es la primera, esperamos que te guste.
https://amdisenoweb.es/curso-jquery-introduccion/ย

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch โข No registration required โข HD streaming
ๅคงใจใไธๅ็ฃ
URL: http://otorofudosan.com
Date: July, 2016 to August, 2016
Role: Web Developer
One Page Responsive HTML Website
Developed using CSS, HTML and Javascript only
Converted PSD to HTML
JQuery ์ ์ฑ๋ฅ ํฅ์์ ์ํ Guide
Naming Rule
Jquery Object ์ ๊ฒฝ์ฐ ๋ณ์ ๋ชจํธ์ฑ์ ๋ช ํํ๊ฒ ํ๊ธฐ ์ํด ๋ณ์๋ช ์์ "$ + ๋ณ์๋ช " ์ผ๋ก ์ฒ๋ฆฌ ํ๋ค.
// Bad case Before Code var name = $("#Name"); // Good case var $name = $("#Name"); var name = $("#Name").val();
Selecter
๋ฒ์๋ฅผ ํ์ ํ ์๋ก JQuery Selecter์ ์ฑ๋ฅ์ด ํฅ์๋๋ค.
// class ๊ฒ์์ ์์์ class btn ์ ์ฐพ๋๋ค. var active = $(".Active") // ์ด ๊ฒฝ์ฐ ๋ชจ๋ ํญ๋ชฉ์์ Active class ๋ฅผ ์ฐพ์์ ๊ฒฐ๊ณผ๋ฅผ return ํ๋ค. // ๊ฐ์ ๋ ๋ฐฉ๋ฒ var active = $("li.Active"); // ์ด ๊ฒฝ์ฐ li tag ํญ๋ชฉ์ค Active class ๋ฅผ ์ฐพ์์ค๋ค.
JQuery ํ์ ๊ฒ์์ ํ ๋๋
<body> <ul id="menu"> <li> <input type="text"> </input> <div> </div> </li> </ul> <script> $(function(){ var menu = $("$menu"); // ๊ฒ์ ๋ฒ์๋ฅผ ํ์ ํ๊ณ menu ๋ฒ์์์ ํ์๋ฅผ ๊ฒ์ var input = menu.find("li"); // ๋ช ์์ ์ธ ์ ๊ทผ์ผ๋ก ์ฑ๋ฅ์ ๋ ํฅ์ ์ํจ๋ค. var input = menu.find("li div"); }) </script> </body>
Selecter Set Value
ํ ๊ฐ์ฒด์ ์ฐ์์ ์ธ ๊ฐ์ ์ค์ ํ ๋์ ์ฃผ์ ์ฌํญ
// Bad case Before Code $("#spnVendorName").attr("readonly", true); $("#spnVendorName").css("cursor", "default"); $("#spnVendorName").css("color", "black"); // Good case After Code $("#spnVendorName").attr("readonly", true) .css("cursor", "default") .css("color", "black");
ํ ๊ฐ์ฒด์ ํ์ Child ์ ๋ํ ์ ๊ทผ์ ํ ๊ฒฝ์ฐ ์ฒ๋ฆฌ ๋ฐฉ๋ฒ
// Bad case Before Code $("#spnTable").find(".selected").attr("readonly" , true); $("#spnTable").find(".nonselected").attr("readonly" , false); // Good case After Code $("#spnTable").find(".selected").attr("readonly" , true).end() .find(".nonselected").attr("readonly" , false);
end Method๋ ์ต์ด object ๋ฅผ return ํ๋ค
Form Serialize
Form ์ ์ํ input ์ ๊ทผ์ ํด๋น Form ์ ๋ํ ๊ฐ์ ๋ํด serialize()๋ฅผ ํตํด json ํฌ๋งท์ ๊ฐ์ ์ป์ ์ ์๋ค.
// "Form" ์์ ๊ฐ์ Ajax parameter ๋ฑ์ผ๋ก ์ฌ์ฉํ ๋์๋ serialize() ๋ฅผ ํ์ฉํ๋ค. var str = $("#form").serialize(); // Javascript Array ํ์์ผ๋ก Form์ ์ฉ์ serialize ํ๋๋ฐฉ๋ฒ var arrayObj = $("#form").serializeArray(); <form id="form"> <input id="name" type="text" /> </form>
์ฐธ๊ณ - http://api.jquery.com/serialize/ - http://api.jquery.com/serializeArray/
Loop
$.each ๋ for๋ฌธ ์์ฑ์ loop ๋ฌธ ์์์ $(".menu") ๋ผ๋ ์ง selector ๋ ํ์ง ์๋๋ค. selector ์์์๋ loop๊ฐ ๋์ํ๊ฒ ๋์ด ์ฑ๋ฅ์ ์ ํ ์ํจ๋ค.
var catType = ['Tiger' , 'Lion' , 'Cat']; var content; $.each(catType , function() { var text = this; // ๋ฐฐ์ด์ ๊ฐ๊ฐ ํญ๋ชฉ content += "<li>" + this + "</li>"; } );
Event
$("btnSearch").onclick ์ ์ฌ์ฉํ์ง ์๋๋ค. onclick ์ด ์๋ on ์ ์ฌ์ฉํ๋ค.
// bad case $("btnSearch").onclick(function () {}); //good case $("btnSearch").on("click" , function (){} );
Animate Easing Plugin
$("#scrollul li").animate({top: "-=205px"}, {duration:1000, easing:'easeInQuad', complete: fix});

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch โข No registration required โข HD streaming