即使在移动项目后,我也希望强制网格项始终处于最后位置。
我在想一个好的方法是
NON-BUGS
Operator precedence surprises
The command find . -name afile -o -name bfile -print will never print
afile because this is actually equivalent to find . -name afile -o \(
-name bfile -a -print \). Remember that the precedence of -a is
higher than that of -o and when there is no operator specified
between tests, -a is assumed.
“paths must precede expression” error message
$ find . -name *.c -print
find: paths must precede expression
Usage: find [-H] [-L] [-P] [-Olevel] [-D ... [path...] [expression]
This happens because *.c has been expanded by the shell resulting in
find actually receiving a command line like this:
find . -name frcode.c locate.c word_io.c -print
That command is of course not going to work. Instead of doing things
this way, you should enclose the pattern in quotes or escape the
wildcard:
$ find . -name '*.c' -print
$ find . -name \*.c -print
..并在做出更改后执行。
我已经创建了一个完整的小提琴,除了魔术以进行订单更新: https://jsfiddle.net/2buqd4nu/
我很乐意接受能达到同样效果的任何其他方法。
答案 0 :(得分:0)
内置的“ append”方法可以引用:
将新附加的item元素添加并布置到末尾 布局。
更多信息:https://packery.metafizzy.co/methods.html#appended
如果您希望对阵列具有更大的功能并且不害怕切碎Packery文件,则可以调用elems
阵列。参见:https://packery.metafizzy.co/methods.html#getitemelements。
希望这会有所帮助!