1.为不支持某些属性的浏览器使用polyfill:如果想弥合较弱的浏览器和较强的浏览器之间的功能差异,可以使用polyfill(通常又称作垫片),通常用js实现。但是有些较弱的浏览器运行JS的速度要慢得多。2.为元素创建圆角:(1)为元素创建四个相同的圆角:.all-corners{ -webkit...
分类:
Web程序 时间:
2015-12-02 00:40:21
阅读次数:
214
方法一、让IE6-8支持css3属性 方法二、respond.src.js/*! Respond.js v1.4.2: min/max-width media query polyfill * Copyright 2014 Scott Jehl * Licensed under MIT...
分类:
Web程序 时间:
2015-10-10 17:07:46
阅读次数:
239
javascript由于各种历史原因以及前端界典型的激进的特点,导致一些好的设计和模块不能够在各种平台上运行,(这里各种平台主要指的是各巨头的浏览器加上进年火的不行的Nodejs。)但是程序员需要为其埋单,程序员需要去了解各种模块的polyfill,小到一些函数如:Object.sign,extend,clone等。大的模块有,Seajs、Requirejs这类文件模块加载模块,Promise这类担...
分类:
其他好文 时间:
2015-08-27 11:07:12
阅读次数:
325
//?http://paulirish.com/2011/requestanimationframe-for-smart-animating/
//?http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
//?requestAnimationFrame?pol...
分类:
其他好文 时间:
2015-05-04 13:59:14
阅读次数:
138
Polyfill is something you don't need to set up traceur but start to use es6 in today's browser.You can search for polyfill which you want to use on Go...
分类:
其他好文 时间:
2015-04-29 07:06:33
阅读次数:
131
今天继续研究了bind函数的实现,也知道了shim和polyfill的说法,现在总结一下, 1 if (!Function.prototype.bind) { 2 Function.prototype.bind = function (oThis) { 3 if (typeof this...
分类:
Web程序 时间:
2015-04-25 15:01:59
阅读次数:
150
https://github.com/paulmillr/console-polyfillhttps://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfillshttp://addyosmani.com/blog/writi...
分类:
Web程序 时间:
2015-04-23 19:16:13
阅读次数:
185
/* Zepto v1.0-1-ga3cab6c - polyfill zepto detect event ajax form fx - zeptojs.com/license */;(function(undefined) { if (String.prototype.trim === und....
分类:
其他好文 时间:
2015-04-06 17:02:13
阅读次数:
268
http://modernizr.com/http://necolas.github.io/normalize.css/http://philipwalton.github.io/polyfill/https://github.com/paulirish/matchMedia.js/http://w...
分类:
其他好文 时间:
2015-03-05 18:36:42
阅读次数:
139
1 //为实现各种现代浏览器的requestAnimationFrame()方法,创建一段简单的跨浏览器保障代码(polyfill),以实现流畅、高效的动画。由保罗?艾里什(Paul Irish)编写,网址为 http://bit.ly/req_anim_frame。 2 window.req...
分类:
编程语言 时间:
2014-11-23 15:45:01
阅读次数:
283