例如,此页面:
http://jqueryui.com/demos/show/
我知道该节目的原型是:显示(效果,[选项],[速度],[回调]),它说“选项:包含特定选项的对象/哈希影响。”这些具体选项是什么?我找不到他们: - (
答案 0 :(得分:0)
您可以在此页面的源代码中看到一些示例:http://jqueryui.com/demos/effect/#option-options
请参阅代码的这一部分,例如:
// most effect types need no options passed by default
var options = {};
// some effects have required parameters
if ( selectedEffect === "scale" ) {
options = { percent: 0 };
} else if ( selectedEffect === "transfer" ) {
options = { to: "#button", className: "ui-effects-transfer" };
} else if ( selectedEffect === "size" ) {
options = { to: { width: 200, height: 60 } };
}