IE 브라우저:'이벤트스'가 비어 있거나 대상이 아님/'render'가 비어 있거나 대상이 아님
IE에서 이 오류를 보고하면 대부분 items의 마지막 항목에 쉼표가 추가됩니다.
예:
Ext.onReady(function(){
new Ext.Panel({
renderTo:"hello",
tltie:" ",
width:500,
height:200,
layout:"accordion",
layoutConfig:{
animate:true
},
items:[{title:" 1",html:" 1 "},
{title:" 2",html:" 2 "},
{title:" 3",html:" 3 "},
]
});
});
items의 마지막 항목
{title:" 3",html:" 3 "},
쉼표 빼면 OK.
2.'render'가 비어 있거나 대상이 아닙니다.
이 오류도 IE에서 불여우에만 나타나고 나타나지 않습니다. 마찬가지로 이 오류도 쉼표가 많아서 일어난 것입니다. 다만 button에 많이 있을 뿐입니다.
Ext.onReady(function(){
new Ext.Panel({
renderTo:"hello",
tltie:" ",
width:500,
height:200,
layout:"accordion",
layoutConfig:{
animate:true
},
items:[{title:" 1",html:" 1 "}
] ,
buttons : [
{text : " ",
iconCls : 'saveIconCss',
handler :function(){
this.save;
},
scope : this},
{text : " ",
iconCls : 'closeIconCss',
handler :this.closeWin,
scope : this},
]
});
});
buttons의 마지막 항목
{text : " ",
iconCls : 'closeIconCss',
handler :this.closeWin,
scope : this},
쉼표를 빼주시면 됩니다.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
다른 사람의 웹사이트 편집: contenteditable 및 designMode그래도 우리가 그렇게 할 수 있다고 생각하는 것은 멋진 일입니다. 제가 강조하고 싶었던 일종의 관련 API가 실제로 몇 개 있기 때문에 오늘 그것을 가져왔습니다. contenteditable는 "true" 값이 할당...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.