[英]Page not found (404) in Ajax
我想让一个 WEB 页面在 ajax 中移动屏幕转换。 我写在 one.html
<html>
<head>
<meta charset="UTF-8">
<title>Top</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="jquery.pjax.js"></script>
</head>
<script type="text/javascript">
$(function() {
$.pjax({
area: '#main'
});
$(document).bind('pjax:render', function() {
$('#main').attr({
'class': 'fadeInUp'
});
});
});
</script>
<body>
<p>
name
</p>
<input type="text" name="name" size="10">
<p class="button"><a href="two.html">Next</a></p>
</body>
</html>
在两个.html
<p>
age
</p>
<input type="text" size="10">
<p class="button"><a href="three.html">Next</a></p>
但是当我在 one.html 中放置 Next 按钮时,Page not found (404) Request URL: http://127.0.0.1:8000/app/two.html错误发生。 我不明白为什么会发生这样的错误。我的代码有什么问题?我应该如何解决这个问题?
http://127.0.0.1:8000/app/two.html
所以你可以设置打击的链接:
<p class="button"><a href="app/two.html">Next</a></p>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.