Multi-Line Array Literal

瘦欲@ 提交于 2019-11-30 12:48:49
- myArray = ['one']
- myArray.push('two')
- myArray.push('three')

If you wanna.

You can use block code:

-
    var myArray = [
        "one",
        "two",
        "three"
    ]

each row, index in myArray

divesario is right is should look like this:

- var myArray = [
-    'one',
-    'two',
-    'three'
- ]

You can, but each line must be prefixed by a '-' - see https://github.com/visionmedia/jade/issues/502

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!