摘要: 1、确定变量 bar 是否是对象? (bar !== null) && (typeof bar "object") && (toString.call(bar) !== "[object Array]");或者,使用jQuery: (bar !== null) && (typeof bar "obj 阅读全文
posted @ 2018-06-03 17:04 前端开发-周先生 阅读(292) 评论(0) 推荐(0)
摘要: 假如你的前端框架使用了vue,那你可以大胆地使用以下技术,并忽略其他js和css的兼容性问题,因为 关于vue的兼容性 官方给出了规定 Vue 不支持 IE8 及以下版本,因为 Vue 使用了 IE8 无法模拟的 ECMAScript 5 特性。但它支持所有兼容 ECMAScript 5 的浏览器。 阅读全文
posted @ 2018-06-03 12:44 前端开发-周先生 阅读(2946) 评论(0) 推荐(0)