Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
人工智能 edited this page Jun 27, 2015 · 5 revisions

P.arr(str [,fn])

功能:

按指定规则生成一个一维数组

参数:

str


用于生成规则的表达示,参数类型为String,必选项

fn


用于处理最终数组的每一个项,对数组的每个值分别进行处理,类型为Function或String,可选项。 当fn是String时,提供两个标记符,<$index, 1ドル>,$index是数组当前项在数组中的索引,1ドル是当前项的值 当fn是Function时,会有两个参数,[$index, 1ドル],$index是数组当前项在数组中的索引,1ドル是当前项的值

查看Demo

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /