当我尝试在浏览器上运行此代码时,我收到以下错误."错误响应错误代码:501消息:不支持的方法('POST').错误代码说明:501 - 服务器不支持此操作."
浏览器控制台中存在以下错误:
"1.无法加载资源:服务器响应状态为404(找不到文件)
'http://localhost:8002/js/jquery-1.3.2.min.js'
Run Code Online (Sandbox Code Playgroud)
无法加载资源http://mdsad.com/p.js?v=1372783767755 undefined login.html:61 POST
http://localhost:8002/login.html 501 (Unsupported method ('POST')) login.html:1
Run Code Online (Sandbox Code Playgroud)
资源解释为脚本,但使用MIME类型text/plain:pquery-0.0.1.js:1进行传输
通过stackmob登录用户也会失败.我收到了"失败"警报消息.这是代码:
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript" src="http://static.stackmob.com/js/stackmob-js-0.9.1-bundled-min.js"></script>
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Login Form</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
$(document).ready(function() {
$(".username").focus(function() {
$(".user-icon").css("left","-48px");
});
$(".username").blur(function() {
$(".user-icon").css("left","0px");
});
$(".password").focus(function() {
$(".pass-icon").css("left","-48px");
});
$(".password").blur(function() {
$(".pass-icon").css("left","0px");
});
});
</script>
<script type="text/javascript">
function nextpage(form){
StackMob.init({
publicKey:"my_key",apiVersion:0
});
var u=document.getElementById('username').value;
var p=document.getElementById('password').value;
var …
Run Code Online (Sandbox Code Playgroud)