【问题标题】:Values attribution in jeet columnjeet 列中的值属性
【发布时间】:2016-05-31 06:57:26
【问题描述】:

在 Jeet 文档中,我看到 column (ratios = 1, offset = 0, cycle = 0, uncycle = 0, gutter = jeet-gutter) 带有等号。

然后在以下段落中,表达式使用冒号:column(1/4, cycle: 4)

我不明白为什么文档使用两种不同的归因方法。在编码方面,afaik,:= 之间存在很大差异,我不明白为什么开发人员同时使用这两者。

谢谢

【问题讨论】:

    标签: stylus jeet-grid


    【解决方案1】:

    = 用于 mixin 声明中的默认参数。 : 用于命名参数(当您需要传递参数并且不想担心它的位置时)。请参阅 Stylus 文档 (http://stylus-lang.com/docs/functions.html)

    【讨论】:

      猜你喜欢
      • 2013-06-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多