jquery - 引导之旅 - 获取类型错误:无法读取未定义的属性“onNext”
问题描述
我正在尝试在我的网站中实现引导程序。但是,当我在游览弹出框上单击下一步时,我总是遇到错误,并且游览不会进入下一步。
bootstrap-tour.js:469 Uncaught TypeError: Cannot read property 'onNext' of undefined
at Tour._showNextStep (bootstrap-tour.js:469)
at Tour._callOnPromiseDone (bootstrap-tour.js:812)
at Tour.next (bootstrap-tour.js:178)
at HTMLButtonElement.<anonymous> (bootstrap-tour.js:741)
at HTMLDocument.dispatch (jquery-1.9.1.js:3074)
at HTMLDocument.elemData.handle (jquery-1.9.1.js:2750)
Tour._showNextStep @ bootstrap-tour.js:469
Tour._callOnPromiseDone @ bootstrap-tour.js:812
Tour.next @ bootstrap-tour.js:178
(anonymous) @ bootstrap-tour.js:741
dispatch @ jquery-1.9.1.js:3074
elemData.handle @ jquery-1.9.1.js:2750
以下是我作为游览步骤添加的内容:
$(document).ready(function() {
var tour = new Tour({
steps: [
{
element: ".stepClass",
title: "Title1",
content: "Message 1.",
debug:true//Set this option to true to have some useful informations printed in the console.
},
{
element: ".stepClass2",
title: "Title2",
content: "Message 2",
debug:true
}
],
backdrop: true,
storage: false
});
tour.init();
tour.start();
});
有人可以帮忙吗?
解决方案
推荐阅读
- jsp - JSTL c:if 无法识别 ${} 内的字符串并导致 EL 语法错误
- php - PHP PDO 动态查询构建器类
- qt - 如何限制 sizegrip 只能垂直或水平调整大小?
- uwp - Raspberry Pi UART 引脚作为通用用途
- python - 与图像大小相关的 PyQTGraph ImageExporter 错误
- java - 客户端无法连接到服务器
- c# - Appsetting.json 读取控制器类中键的值,空白?
- angular - 无法从其他 NgModule 加载惰性模块中的指令
- c# - c# 通用属性
- install4j - 可以在“请求权限”操作中重命名“install4j”吗?