
Node.js安装和入门
Node.js是一个用于构建快速,可扩展的网络应用平台,它建立在Chrome的JavaScript之上运行。Node.js使用事件驱动,非阻塞I/O模型,使得它重量轻,高效,完美的数据密集型实时应用程序运行在分布式设备。 在Windows上...
Node.js是一个用于构建快速,可扩展的网络应用平台,它建立在Chrome的JavaScript之上运行。Node.js使用事件驱动,非阻塞I/O模型,使得它重量轻,高效,完美的数据密集型实时应用程序运行在分布式设备。 在Windows上...
Stylus supports both literal @import for CSS, as well as dynamic importing or requiring of other Stylus sheets...
Stylus allows you to iterate expressions via the for/in construct, taking the form of: For example: Yields: Th...
In 0.39.0 version Stylus got hash objects. Define You can define a hash using the curly braces and colons to d...
Conditionals provide control flow to a language which is otherwise static, providing conditional imports, mixins, functi...
Stylus supports three kinds of comments: single-line, and multi-line comments, and multi-line buffered comments. Single-...
Stylus supports rest parameters in the form of name.... These params consume the remaining arguments passed to a mi...
Stylus supports keyword arguments, or “kwargs”. These allow you to reference arguments by their associated parameter nam...
Both mixins and functions are defined in the same manner, but they are applied in different ways. For example, we have a...
Stylus supports interpolation by using the {} characters to surround an expression, which then becomes part of...
CSS needs a hero What if we could omit braces? How about semi-colons? Keep things DRY How about transparent mixins? Crea...
简单点可以这么说: js是单线程的,是基于事件循环的。setTimeout函数是异步的,异步的事件会加入一个队列,当同步的任务执行完之后,才会执行。
Stylus ships with a TextMate bundle, located within ./editors. To install, simply execute make install-bundle,...
之所以将word-break、overflow-wrap(word-wrap)和white-space这三个属性放在一起比较,是因为它们都有一个共同的作用,就是控制文本的换行。因为有三个,所以就容易混淆。这个三个属性有时候选任何一个都能实现...
FireStylus is a Firebug extension that makes Firebug display the Stylus filename and line numbers of the Stylus-generate...
需要注意的是, /usr/sbin/sendmail 如今已经是一个标准的共享API,并不是指的最初的Sendmail MTA。事实上,你也不应该使用Sendmail,而是使用更先进的软件,例如OpenSMTPD, Postfix, 或 E...
问题是这样的:如果几个inline-block元素放在一起,它们的代码是按常见的HTML标准格式化,那么,在它们之间就会存留一些空格。
三维立体效果我觉得是CSS3中最有意思的地方,不得不佩服那些开发者大神们,让我们能够通过几行CSS代码就能得到酷炫的视觉体验。
Below we go head to head with other implementations. 变量(Variables) SCSS: Less: Stylus: 混合(Mixins) SCSS: Less: Stylus: Co...
CSS3按钮一般都可以设计的非常漂亮,利用投影、渐变等CSS3属性特效可以把按钮渲染的十分动感。今天分享的这款CSS3按钮外观非常特别,它看上去酷似晶莹剔透的牛奶,而且在点击按钮时出现3D效果的动画,按钮按下时,按钮会轻轻的弹动一下,非常逼...
JavaScript 通过XMLHttpRequest(XHR)来执行异步请求,这个方式已经存在了很长一段时间。虽说它很有用,但它不是最佳API。在Fetch API中,最常用的就是fetch()函数。它接收一个URL参数,返回一个prom...
这篇文章里我们将学习CSS里flexbox布局的几个最重要的概念,通过学习flexbox布局,你会发现以往遇到的所有的关于布局的问题,现在都可以轻松解决了。
Web端对于宽度有各种定义,比如innerWidth,outerWidth,clientWidth,offsetWidth。不同语境下有不同的含义,PC端与移动端的表现也有不同,还可能与缩放水平、滚动条、viewport设置等因素相关。
Stylus supports basic sourcemaps according to the Sourcemap v3 spec Create a sourcemap Pass the --sourcemap&nb...
胖箭头函数(Fat arrow functions),又称箭头函数,是一个来自ECMAScript 2015(又称ES6)的全新特性。有传闻说,箭头函数的语法=>,是受到了CoffeeScript 的影响,并且它与CoffeeScri...