JS bug

  • alert(oDiv.currentStyle.width);

Uncaught TypeError: Cannot read property 'width' of undefined     //'width' 前面的没定义  其实就是浏览器不兼容 currentStyle只有IE有

  • Uncaught SyntaxError: Unexpected token ILLEGAL  //中英


  •  Cannot read property 'value' of null //'value' 前面的没找到

oLI.innerHTML=OTxt.value;       //oTxt 没有找到

你可能感兴趣的:(JS bug)