0

I'm having little trouble with easeInOutCubic.

I want to use jquery switchButton plugin: http://olance.github.io/jQuery-switchButton/ inside wordpress admin panel.

I've included code correctly, and I'm also positive I've jquery-ui core.

<script type='text/javascript' src='http://localhost/test/wp-admin/load-scripts.php?c=1&amp;load%5B%5D=admin-bar,hoverIntent,common,jquery-ui-core,jquery-ui-widget,jquery-ui-tabs,jquery-ui-mouse,jquery-ui-slider,jquery-ui-button&amp;ver=3.5.2'></script>

I thought easeInOutCubic was part of jquery-ui core. Or not? Does wordpress have it included or do I've to include it manually? Any ideas?

S.


So, easing is not included in jquery-ui-core. It must be enabled separately.

wp_enqueue_script("jquery-effects-core");

Code above did the trick.

4

1 回答 1

2

因此,缓动不包含在 jquery-ui-core 中。它必须单独启用。

wp_enqueue_script("jquery-effects-core");

上面的代码成功了。

于 2013-09-14T13:16:04.167 回答