programming(9)
-
[jQuery] width(), height()
- width(value) / width() width 값 set / width 값 get - height(value) / height() height 값 set / height 값 get
2018.03.23 -
lastIndexOf
- 마지막 해당 string이 시작하는 index var str = "time, time, time"; str.lastIndexOf("time"); // 12
2018.03.23 -
javascript 실행 순서
1. 스크립트에 바로 쓴 코드 2. ;(function ($) { console.log("이게 두 번째"); })(jQuery); 3. $(document).ready(function ( ) { console.log("이게 세 번째"); }); $(function ( ) { console.log("이게 세 번째"); }); 4. window.onload = function ( ) { console.log("이게 네 번째"); } 기본적으로 동기방식이므로 같은 순위면 순서대로 진행된다.
2018.03.23