会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
THE BEST GIFT
博客园
首页
新随笔
联系
管理
订阅
2017年3月21日
火狐下window.event获取undefined问题
摘要: 火狐下用window.event来进行相应操作时,会显示undefined,其他浏览器可以, 解决方法: 1,传入对象 $("a").on("click",function(e){var event = e || window.event}); 2,不传入对象 $("a").on("click",f
阅读全文
posted @ 2017-03-21 17:29 有间小屋在森林
阅读(3558)
评论(0)
推荐(0)
编辑
公告