请问:下面代码运行为何运行出现错误。信息:error loading page
代码1:index.html
代码二:login.php
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" name="viewport" content="width=device-width,initial-scale=1"/>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" />
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>
<style>img{max-width:100%;}</style>
<title>My first</title>
</head>
<body>
<div data-role="page">
<div data-role="header"><h1>My First Mobile Site</h1></div>
<div data-role="content">
<form id="login" name="login" action="login.php" method="POST">
<div data-role="fieldcontain">
<label for="username">Username:</label>
<input type="text" name="username" id="username" value=""/><br/>
</div>
<div data-role="fieldcontain">
<label for="password">Password:</label>
<input type="password" name="password" id="password" value=""/><br/>
</div>
<input type="hidden" name="hiddenInput" id="hiddenInput" value="secret message"/>
<input type="submit" name="loginSubmit" id="loginSubmit" value="Login"/>
</form>
</div>
</div>
</body>
</html>代码二:login.php
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" name="viewport" content="width=device-width,initial-scale=1"/>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" />
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>
<title>My first 2</title>
</head>
<body>
<div data-role="page">
<div data-role="header">
<h1>My First Mobile Site 2</h1>
</div>
<div data-role="content">
<p>Usernamr:"<strong><?php echo $_POST['username'];?></strong>"</p>
<a href="index.html" data-rel="back" data-role="button">Go Back</a>
</div>
</div>
</body>
</html>
...全文
相关推荐
详解Vue项目中出现Loading chunk {n} failed问题的解决方法
在解决"Loading chunk {n} failed"问题时,文章提出了两种方法:第一种是通过服务端捕获错误。
vue实现ajax滚动下拉加载,同时具有loading效果(推荐)
同时,可以定义一个变量switchShow来控制是否显示“点击加载更多”的提示,以及一个变量来控制显示加载中的loading动画。
wpbakery page builder 5.7 汉化破解版
"本文档记录了WPBakery Page Builder插件的更新历史,涵盖了对PHP 7.3的兼容性、WooCommerce修复、页面预览样式、与WordPress 5.0的兼容性、SSL字体问题修
IOS中UIWebView加载Loading的实现方法
在iOS开发中,UIWebView是一个常用的视图,用于显示Web内容。然而,在加载网页时,用户体验的一个重要方面是提供明显的加载指示,以让用户知道页面正在加载。本文将介绍一种常见的实现方法,即使用U
Android开发实现自定义新闻加载页面功能实例
="true" android:scaleType="centerInside" android:src="@drawable/ic_error_page" /> <Button android


