我目前是简介JS的新手,我有这个大项目
我需要在第1页上启动游览,该巡回赛将继续在第2页上,然后需要返回第1页,然后开始另一个将继续在第3页上继续进行的旅行
我希望有人可以帮助我:(
https://github.com/usablica/intro.js
examples/
文件夹中有一个多页演示。
-
克隆项目,使用浏览器打开
examples/index.html
文件。 -
单击
Multi-Page introduction
并查看源。
在底部您会发现
<script type="text/javascript">
document.getElementById('startButton').onclick = function() {
introJs().setOption('doneLabel', 'Next page').start().oncomplete(function() {
window.location.href = 'second.html?multipage=true';
});
};
</script>
使用它来开始。
将示例代码发布到github或其他内容。
卡住时更新您的问题。