for (i = 0; i < len; i++) {
dStep = links[i].getAttribute("data-step"),
dIntro = links[i].getAttribute("data-intro"),
linkObj = {
element: "#step" + dStep,
intro: dIntro,
position: "right"
};
obj.steps.push(linkObj);
如何将位置:“左”添加到循环中的最后一项?