小编Joh*_*ith的帖子

Bootstrap按钮不起作用

您好我正在制作一个按钮,由于某种原因,当我点击它时,我没有打开Projects.php,我无法找到它为什么不起作用这里是我的代码:

<h1>Projects</h1>

<p> Some text</p>

<button type="button" class="btn btn-default" href="Projects.php">View details »</button>
Run Code Online (Sandbox Code Playgroud)

我链接了以下库:

<link href="css/bootstrap.min.css" rel="stylesheet">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
Run Code Online (Sandbox Code Playgroud)

我从引导站点下载引导程序文件并将文件夹放在我的目录中.我的文件保存为index.php(因为php代码是我的文件)

任何帮助表示赞赏!

button twitter-bootstrap

2
推荐指数
1
解决办法
1万
查看次数

如果语句在满足条件时不起作用

这是我的代码:

var count = 2;
var decrementAmount = 1;

function reduceVariable() {
    count -= decrementAmount;
}

$("#button").click(function() {
    reduceVariable();
});

if (count == 0) {
    $("#avrageReactionTime").html("Hello");
};
Run Code Online (Sandbox Code Playgroud)

当我单击我的按钮两次时,具有id avrageReactionTime的div不会更改为具有文本hello.为什么我有这个问题......

javascript jquery if-statement function

-1
推荐指数
1
解决办法
48
查看次数