使用 jquery 步,我们如何直接加载最后一步
using jquery steps ,how can we load last step directly
我是 jquery 步骤的新手,我需要在加载表单后直接加载最后一步。
有人可以建议我如何实现吗?
假设您想直接转到最后一步,请在 jquery.steps.js 文件
中更改一个 属性
startIndex: 0
,
添加您的最后步数代替“0”。
因此,不要将它放在 jquery.steps.js 中(这可能会导致您的更改在升级时被覆盖),只需将以下内容放在您要使用步骤的页面上。您设置 startIndex
行为。下面我留下了一些其他设置,以便您可以看到如何应用行为 at jquery steps。
$("#steps").steps({
headerTag: "h3",
bodyTag: "section",
enableAllSteps: true,
transitionEffect: "slide",
stepsOrientation: "vertical",
startIndex: 1, // Right here, you can set the index of the item you want to change.
});
我是 jquery 步骤的新手,我需要在加载表单后直接加载最后一步。 有人可以建议我如何实现吗?
假设您想直接转到最后一步,请在 jquery.steps.js 文件
中更改一个 属性startIndex: 0
,
添加您的最后步数代替“0”。
因此,不要将它放在 jquery.steps.js 中(这可能会导致您的更改在升级时被覆盖),只需将以下内容放在您要使用步骤的页面上。您设置 startIndex
行为。下面我留下了一些其他设置,以便您可以看到如何应用行为 at jquery steps。
$("#steps").steps({
headerTag: "h3",
bodyTag: "section",
enableAllSteps: true,
transitionEffect: "slide",
stepsOrientation: "vertical",
startIndex: 1, // Right here, you can set the index of the item you want to change.
});