요구 사항을 사용하여 jquery.jstree.js로드 IE에서 작동하지 않습니다.requireJS를 사용하여 jquery.jstree.js로드 IE에서 작동하지 않습니다
requireJS를 사용하여 JSTree 플러그인 (jquery.jstree.js)을로드하려고하면 다음과 같은 JS 오류로 IE8에서 실패합니다.
Message: Could not get the type property. Invalid argument.
Line: 109
Char: 463
Code: 0
URI: file:///...../js/requireplugins-jquery-1.4.3.js
다른 브라우저 (FF 및 Chrome)에서 테스트 해본 결과 제대로 작동합니다. 또한, 그것은 단지 그것이 내가 조금로 require.js 디버깅을 발견했습니다
I have a test.html where I load requrejs specifying the data-main attribute.
<script type="text/javascript" data-main="main" src="js/requireplugins-jquery-1.4.3.js"></script>
A main.js where I define all the modules to be loaded and a callback - I have shown
only the jstree module here as that's the only one causing a problem.
main.js:
require(["jquery.jstree"], callBackFunctionToInitialzeTree);
나쁘다! 그것이 requireJS의 문제가 아니라 jsTree의 유형 플러그인이라는 것을 알았습니다. 내 li 요소에 "type"특성을 사용하고 IE에 문제가있는 것 같습니다. jsTree 문서에서는 대신 "rel"속성을 사용하는 것이 좋습니다. 어쨌든 귀하의 제안에 감사드립니다, 그들을 명심하십시오 .. – Alphonso