我想找出为什么我的靴带巡回赛不启动点击。
请参阅下面的图片以获得参考和代码。注意,我忽略了页面的大部分代码,因为我不想压倒您。希望这里有足够的时间让你的巡回演出顺利进行。
我做错什么了?

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-tour/0.11.0/css/bootstrap-tour.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<!-- Button for Tour Start -->
<a id="MSL-initialize-tour" class="MSL-tour-button MSL-white-button" href="#">START TOUR</a>
<img id="MSL-tour-welcome" class="MSL-Headine-Desktop" src="https://sephora.csod.com/clientimg/sephora/welcome/1-22-18_Headline_V2.png" />
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-tour/0.11.0/js/bootstrap-tour.min.js"></script>
<script>
// Instance the tour
var tour = new Tour({
steps: [
{
element: "#MSL-tour-welcome",
placement: "top",
title: "<span class='glyphicon glyphicon-star'></span> Welcome to MSL!",
content: "Press 'next' to see page features"
}
]});
$('#MSL-initialize-tour').click(function(){
tour.init();
tour.start();
});
</script>发布于 2018-01-05 20:55:45
bootstrap-tour.min.css文件不匹配。
integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp“
该值用于bootstrap-theme.min.css。您可以看到,在运行控制台时,控制台中的完整性检查出现了错误。要么删除完整性检查,要么找到正确的完整性值。TypeError stop is not a function时,可以看到此错误。您应该使用jQueryx.min.js。下面的代码会在页面启动时立即启动浏览,但是这样您就可以知道点击后的效果。
tour.init();
tour.start();
$('#MSL-initialize-tour').click(function(){
tour.restart();
});tl;博士浏览css的完整性值是不正确的,不应该使用瘦版本的jquery,并且需要重新启动这个浏览,而不是每次单击之后重新初始化。
https://stackoverflow.com/questions/48120527
复制相似问题