본문 바로가기

WWWEB/Script23

[js] substr() 사용은 그만. 문자열 자르기 방법을 찾는 중 substr, substring, slice 등의 방법들이 검색됨. 그런데 MDN사이트에 게시된 내용을 보면 substr은 더 이상 사용되지 않는다고 나옴. 결론은 substring() 또는 slice()를 사용하자!) 2022. 12. 20.
절대 좌표/상대 좌표 구하기 // 상대 좌표 구하기 let element1 = document.querySelector('.box1'); let elementTop1 = element1.getBoundingClientRect().top; console.log(elementTop1); // 절대 좌표 구하기 let element2 = document.querySelector('.box1'); let elementTop2 = window.pageYOffset + element2.getBoundingClientRect().top; console.log(elementTop2) // 1000 // 다른 요소로부터 좌표 구하기 let element3 = document.querySelector('.box1'); let target = docu.. 2022. 8. 9.
모던자바스크립트 핵심 가이드 pdf (complete guide to modern javascript) 책이 심플하니 훑어보기 좋은 것 같다. 그리고 찾아본 alberto Montalesi 깃헙과 pdf https://github.com/AlbertoMontalesi/The-complete-guide-to-modern-JavaScript GitHub - AlbertoMontalesi/The-complete-guide-to-modern-JavaScript: A comprehensive, easy-to-follow ebook to learn everything fro A comprehensive, easy-to-follow ebook to learn everything from the basics of JavaScript to ES2022. Read more on my blog https://inspiredw.. 2022. 5. 25.
[자료] 알아서 잘 딱 깔끔하고 센스있게 정리하는 JavaScript 핵심 개념 알아서 잘 딱 깔끔하고 센스있게 정리하는 JavaScript 핵심 개념 https://morning-heart-e2a.notion.site/JavaScript-f037c206e538471f9a9f1915b2139a60 알아서 잘 딱 깔끔하고 센스있게 정리하는 JavaScript 핵심 개념 A new tool for teams & individuals that blends everyday work apps into one. morning-heart-e2a.notion.site # 머리말과 저자소개 Notion 링크, PDF 파일 및 QR 코드 https://www.notion.so/Notion-PDF-QR-92909f3557df43bebed5028ed8ef63e5 1. 초심자가 알면 좋은 JS 생태계 ht.. 2022. 5. 16.
[js] 키워드, 예약어 * ES5 스펙 키워드 break, case, catch, continue, debugger, default, delete, do, else, finally, for, function, if, in, instanceof, new, return, switch, this, throw, try, typeof, var, void, while, with * ES3 예약어 abstract, boolean, byte, char, class, const, debugger, double, enum, export, extends, final, float, goto, implements, import, int, interface, long, native, package, private, protected, public, s.. 2017. 6. 18.
[tweenmax]트윈맥스 라이브러리 라이선스 http://greensock.com/licensing/ * standard (ok), business (ok)Usage in 100% free apps, games, sites, and other software even if you charge a fee to develop these products100 % 무료 응용 프로그램, 게임, 사이트 및 기타 소프트웨어의 사용은이 제품을 개발하기 위해 비용을 청구하는 경우This includes advertising, internal sites and tools, promotional web sites, free software, and pretty much everything that isn't sold to multiple end users.이것은 광고.. 2016. 10. 11.
[js] URL가져오기 - JavaScript Window Location (window.location) window.location 개체는 현재 페이지 주소 (URL)를 가져오고 브라우저를 새 페이지로 redirect하는 데 사용할 수 있다. [예시 URL]http://www.w3schools.com/js/js_window_location.asp?name=mini&lang=ko window.location.href → http://www.w3schools.com/js/js_window_location.asp?name=mini&lang=ko window.location.protocol → http: window.location.host → www.w3schools.com window.location.pathname → /js/js_window_location.asp window.location.search .. 2016. 9. 12.
마우스 드래그를 막고싶다면 웹사이트 긁기 등 방지 $('body').attr({oncontextmenu: 'return false',ondragstart: 'return false',onselectstart: 'return false'}); * 현재 KB카드에 적용되어 있음. https://card.kbcard.com/CXPRICAC0076.cms?mainCC=a&cooperationcode=01956 2016. 8. 18.
버튼으로 overflow된 영역 스크롤하기 버튼 클릭하면 스크롤 움직이게 만들어 달라고... - ,-; 작동은 되니 적용... (언제쯤 고수가 될지.. ㅠㅠㅠㅠㅠ) mini test text mini test text mini test text mini test text mini test text mini test text mini test text mini test text mini test text mini test text mini test text mini test text mini test text mini test text mini test text mini test text mini test text mini test text mini test text mini test text mini test text mini test text .. 2015. 11. 25.
728x90
반응형