
1、can i use console IE9开发者工具打开时支持console对象,否则报错。
测试代码
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-CN" /> <title></title>
<script>
alert(console);
console.log(11111);
alert(222222222);
</script>
</head>
<body>
测试IE9兼容性
</body>
</html>
1、页面中文注释问题(可以将所有注释全部干掉)
2、js脚本格式问题:
1)、括号是否一一对应
2)、是否有多余的标点符合,例如json对象最后的逗号多余:{a:'1', b:'2',}
3)、js脚本中的注释问题
3、js脚本加载顺序问题
4、console问题,