가능한 복제를 호스트 기능을 참조하기 :
JavaScript function aliasing doesn't seem to work자바 스크립트 : 지역 변수를 통해
하지 않는 이유는이 작품? 파이어 폭스에서 Uncaught TypeError: Illegal invocation
을 ... 그리고 :
function foo() {
var g = document.getElementById;
g('sampleID');
}
이 오류는 크롬에 발생합니다 Error: uncaught exception: [Exception... "Illegal operation on WrappedNative prototype object"
그것은하지만 IE9 베타 버전에서 작동
!
데모 :http://jsfiddle.net/ugBpc/
가능한 중복에 http : // 유래. com/questions/1007340/javascript-function-aliasing-doesnt-seem-to-work) –
'g.call (document, 'sampleID');'?? – Pointy
@Pointy 아니, 나는 생각하지 않았다 앞에 : –