Dev*_*mar 3 javascript jquery linkedin
我尝试过LinkedIn Hopscotch和Intro.js来创建网站游览.但是它们都适用于静态页面/多个静态页面.
问题是我有一个单页面应用程序 - 其中大多数元素是在BackboneJS的帮助下动态创建的.在这种情况下 - Hopscotch和Intro.js都无法附加/等待动态创建的元素.
有没有可以这样做的图书馆.或者如果可以使用Hopscotch/Intro.js实现
var tour = {
id: "hello",
steps: [{
title: "Welcome!",
content: "Hey there! If you have just 2 minutes.",
target: document.querySelector(".list a"),
placement: "bottom"
}, {
title: "Create a new file",
content: "Create a new file",
target: document.querySelector("#page a"),
placement: "right",
onNext: function () {
$('.add-new a').click();
}
]
};
hopscotch.startTour(tour);
Run Code Online (Sandbox Code Playgroud)
对于前者:在Hopscotch上面我应该在$('.add-new a')后做什么.Click(); 打开一个模态窗口?
Sideshow是一个现代且功能强大的库,用于为Web应用程序和站点创建交互式游览,是SPA应用程序的理想选择.
Sideshow不仅仅指导您的用户,还可以与他们互动:
和其他强大的功能!