문제

I noticed a strange behavior of IE (any version : 7, 8 or even 9) when executing JavaScript : Drag and drop don't work, but when I press F12 button twice it work perfectly (F12 developer tools)

On Chrome, all code work in perfection, but in IE I should press F12 twice to let code run perfectly.

Can anyone explain what is this bug?

도움이 되었습니까?

해결책

I guess its because you are using console.log in your code

console.log is available after you open Developer Tools in IE. Use a try catch;

try{
    console.log('log')
}
catch(err){
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top