如题,在火狐中显示
TypeError: el is undefined
switch (el.className) {
var el = e.srcElement||e.target;
貌似找到解决方法了,在报错处加上||e.target即可