7 06 2009

js判断quirks和strict

bigCat Posted in JavaScript - Comment.isBlank

在js中如何判断当前浏览器正在以何种方式解析?\n document对象有个属性compatMode ,它有两个值:\n BackCompat 对应quirks mode\n CSS1Compat 对应strict mode

Host: (miao) | Word: Press | Code: HTML5