레이블이 document인 게시물을 표시합니다. 모든 게시물 표시
레이블이 document인 게시물을 표시합니다. 모든 게시물 표시

2015년 4월 21일 화요일

웹 개발 용어 :: Polyfill

Polyfill

From Wikipedia, the free encyclopedia
In web development, a polyfill (or polyfiller) is downloadable code which provides facilities that are not built into a web browser. It implements technology that a developer expects the browser to provide natively, providing a more uniform API landscape. For example, many features of HTML5are not supported by versions of Internet Explorer older than version 8 or 9, but can be used by web pages if those pages install a polyfill.[1] Webshims[2] and HTML5 Shivs are related concepts.
웹 개발에서 다운로드할 수 있는 코드를 제공할 때 쓰는 말???

인터파크 프로젝트 때 Array.prototype.forEach 를 찾다가 알게됨.

출처:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach

용어 출처:
https://en.wikipedia.org/wiki/Polyfill

2012년 11월 1일 목요일

[javaScript][스크랩] document.location 이란?

document.location 이란?
글쓴이 : 운영자 날짜 : 2010-06-06 (일) 05:57 조회 : 4155 추천 : 0  
window.location 과 비슷한 기능을하는 객체로 

window.location 는 창의 위치를 
document.location 는 페이지의 위치를 나타낸다. 

프레임이 나눠져있는 경우라도 
window.location 프레인 내의 페이지를 가지고 있는 창의위치를 나타내기에 실제 
documenr.location 과 결과물은 동일하다. 

다르게쓰이는 경우도 있을려나.. 내는 아직 몰것네.. 

ps. 위치, 위치.. 하니까 좀 어렵게 느껴진다면..... 
그냥 해당 웹페이지의 http:// 에서 부터 파일명을 포함한 주소를 나타낸다고 하면 좀 쉬울려나. 


tip. location 객체에는 href 라는 속성을 가지며 
reload(), replace() 라는 메소드를 가지는데 차이가 .. (.. 

★★★★★ 
window.location.href = '주소'; //주소로 이동 
window.location.replace('주소');  //주소로 이동 
window.location.reload(); 새로고침 

★★★★★ 
replace()의 경우 history를 남기지 않기때문에 뒤로가기를 할수없음.

크롬 에서 번역 옵션 뜨는 거 막는 방법

버그 같은게 아니고 저 옵션의 기본 값이 제공으로 바뀐듯... 번역 옵션 제공을 비활성화하면 안 뜸. Chrome에서 웹페이지 번역 모르는 언어로 작성된 페이지를 방문할 때 다음 단계에 따라 Chrome이 페이지를 번역하도록 할 수 있습...