1
SErHo Jan 15, 2013 你理解错了,这个是用来统计字符串有多少个单词组成的。
|
2
ratazzi Jan 15, 2013
|
3
ratazzi Jan 15, 2013
囧,最近在 V2EX 回复老是光看代码没仔细看文字
|
5
liuxurong OP 谢谢各位
|
6
zhy0216 Jan 15, 2013 你可以自己写一个函数, 把这个函数传进去
或者自己写一个filter |
7
SErHo Jan 15, 2013 可以这样{{string.count(str)}},这样可以统计 string 中 str 出现的次数。
|