$('#global').show("explode", { number: 50}, 2000);
I tried this code but it doesn't seem to work properly. It looks like it's limited i never got more than 8/10 exploding blocks.
我试过这段代码,但似乎不能正常工作。看起来它是有限的我从来没有超过8/10的爆炸块。
Are there a maximum ? Any ideas ?
有最大值吗?什么好主意吗?
the explode effect is a native effect from the jquery-ui
爆炸效果是jquery-ui的本机效果
3 个解决方案
#2
3
I think the option you need to pass in is 'pieces', not 'number'.
我认为你需要传递的选项是“片段”,而不是“数字”。
$('#global').show("explode", { pieces: 50}, 2000);
#3
2
Just checked out the code.
只是检查了一下代码。
var rows = o.options.pieces ? Math.round(Math.sqrt(o.options.pieces)) : 3;
var cells = o.options.pieces ? Math.round(Math.sqrt(o.options.pieces)) : 3;
There does not seem to be a limit on the number of pieces. This statement just checks if you have passed in a number of pieces and if yes calculates rows and cells, otherwise it defaults to 9 pieces.
似乎没有对作品数量的限制。这个语句只是检查您是否传递了许多块,以及yes是否计算了行和单元格,否则它默认为9块。
With 50 pieces being passed in, going through the calculation of Round(SquareRoot(50)); we get 7 rows and 7 columns. That should result in 49 pieces.
通过50片,进行圆(SquareRoot(50))的计算;得到7行7列。结果是49件。
#1
#2
3
I think the option you need to pass in is 'pieces', not 'number'.
我认为你需要传递的选项是“片段”,而不是“数字”。
$('#global').show("explode", { pieces: 50}, 2000);
#3
2
Just checked out the code.
只是检查了一下代码。
var rows = o.options.pieces ? Math.round(Math.sqrt(o.options.pieces)) : 3;
var cells = o.options.pieces ? Math.round(Math.sqrt(o.options.pieces)) : 3;
There does not seem to be a limit on the number of pieces. This statement just checks if you have passed in a number of pieces and if yes calculates rows and cells, otherwise it defaults to 9 pieces.
似乎没有对作品数量的限制。这个语句只是检查您是否传递了许多块,以及yes是否计算了行和单元格,否则它默认为9块。
With 50 pieces being passed in, going through the calculation of Round(SquareRoot(50)); we get 7 rows and 7 columns. That should result in 49 pieces.
通过50片,进行圆(SquareRoot(50))的计算;得到7行7列。结果是49件。