Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/439.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 引导选项卡工作不正常?_Javascript_Jquery_Twitter Bootstrap_Tabs - Fatal编程技术网

Javascript 引导选项卡工作不正常?

Javascript 引导选项卡工作不正常?,javascript,jquery,twitter-bootstrap,tabs,Javascript,Jquery,Twitter Bootstrap,Tabs,我的引导选项卡工作不正常。我不知道为什么。我已经在我的文件中导入了jquery.js,但仍然没有用。代码如下: <ul class="nav nav-tabs"> <li class="active"><a href="#tab01" data-toggle="tab">Post Autoliker</a></li> <li><a href="#tab02" data-toggle="tab">C

我的引导选项卡工作不正常。我不知道为什么。我已经在我的文件中导入了
jquery.js
,但仍然没有用。代码如下:

<ul class="nav nav-tabs">
    <li class="active"><a href="#tab01" data-toggle="tab">Post Autoliker</a></li>
    <li><a href="#tab02" data-toggle="tab">Comment Autoliker</a></li>
    <li><a href="#tab03" data-toggle="tab">Post Auto-commenter</a></li>
</ul>
<div class="tab-content tab">
    <div class="tab-pane fade in active" id="tab01">
            <h4>Post Autoliker <small>this is for autoliking wall posts. Will work on posts, posts from pages, photos and videos. ;)</small></h4>
            <hr />
            <form action="<?php echo $self; ?>" method="post" autocomplete="off">
                <input type="number" name="post-id" value="" placeholder="Facebook Post ID" class="form-control" required="required" />
                <br /><input type="submit" name="do-like-posts" value="Like the Post!" class="btn btn-primary" />
            </form>
    </div>
    <div class="tab-pane fade" id="tab02">
        <h4>Comment Autoliker <small>this is for autoliking post comments. Will work on any post on any comments. ;)</small></h4>
        <hr />
        <form action="<?php echo $self; ?>" method="post" class="form-inline" autocomplete="off">
            <div class="form-group" style="width:50%">
                <input type="number" name="post-id" value="" placeholder="Facebook Post ID" class="form-control" required="required" />
            </div>
            <div class="form-group" style="width:49%">
                <input type="number" name="comment-id" value="" placeholder="Facebook Comment ID" class="form-control" required="required" />
            </div>
            <p></p><input type="submit" name="do-like-comments" value="Like the Comment!" class="btn btn-primary" />
        </form>
    </div>
    <div class="tab-pane fade" id="tab03">
        <h4>Post Auto-commenter <small>this is for auto-commenting on post. Will work on posts, photos, and videos. ;)</small></h4>
        <hr />
Post Autolike此选项用于自动喜欢墙柱。将处理帖子、来自页面、照片和视频的帖子。;)

我以前也遇到过同样的问题。使用浏览器的调试工具(我个人更喜欢Chrome),检查是否加载jquery或bootstrap.js两次。

Hmm,上面写着.jquery-1.10.2.min.map/jquery GET 404 Not Found text/html Other 714 B 440 B 322 ms 313 ms 313 ms10 msjQuery是必需的。我认为您必须确保jQuery在bootstrap.js之前加载(两个都只加载一次)。但是代码中有两个bootstrap.css,一个是样式表,一个是javascript。也许你可以把它和你的网页比较一下,看看它们之间有没有什么不同。我现在把它修好了。我在我的引导页面底部添加了一些js脚本。谢谢大家。