使用juery mobile后按钮提交的问题...已经解决了

浏览:470 发布日期:2014/12/16 分类:求助交流
Action :
class TestAction extends Action {
public function index() {
if (IS_POST) {
echo '已经提交','<br />';
}
$this->display();
}
}

tpl :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script src="js/jquery.js"></script>
<script src="js/jquery.mobile-1.4.4.min.js"></script> <!--加了这句提交后没返回结果 -->
</head>
<body>
<form id='form1' action='index.php?g=RestD&m=test&a=index' method='post' />
<input type='text' name='name'/>
<input type='submit'/>
</form>
</body>
</html>

上面的 tpl ,加了 <script src="js/jquery.mobile-1.4.4.min.js"></script>这句,运行'http://127.0.0.1/index.php?g=RestD&m=test&a=index'并提交后,并没有出现“已经提交”这个内容,没加那句就有,请问高手们怎么解决使用使用jquery mobile 的post 问题。

已经解决了!!!
最佳答案
评论() 相关
后面还有条评论,点击查看>>