If you multiply that by the 4 seconds that mobile users are expecting to wait, this means the website could be a maximum of 1 MB for 3G users and 3 MB for 4G users.
Anonymous functions are functions that are dynamically declared at runtime. They’re called anonymous functions because they aren’t given a name in the same way as normal functions.
一般是不建议用@extend,如果你已经非常肯定要用@extend,那么再看看下面三条建议: Please reconsider. Use the placeholder hack(Extending silent classes in Sass). Keep an eye on your output. 理论上@extend是很不错,但在实践中,有太多事可能出错了。 I have seen stylesheets more-than-double in size; I hav...
自己写getElementsByClassName函数方法 //解决IE8之类不支持getElementsByClassName if (!document.getElementsByClassName) { document.getElementsByClassName = function (className, element) { var children = (element || document).getElementsByTagName('*'); var elements = new Array(); for (var i = 0; i &l...