0

我正在使用 jQuery Mobile 和 CodeIgniter。在我的索引页面中,

http://localhost:8888/hwezemail2/index.php/welcome/student/index

我有另一个页面的链接。

http://localhost:8888/hwezemail2/index.php/welcome/student/myhomework/56

但是当我点击链接时,它会转到下面并且不显示。

http://localhost:8888/hwezemail2/index.php/welcome/student/index#/hwezemail2/
index.php/welcome/student/myhomework/56

然后,一旦 url 变为

http://localhost:8888/hwezemail2/index.php/welcome/student/myhomework/56

但它不显示内容。所以我再次刷新它然后它显示内容。

一旦它显示,那么我没有任何问题。这只是第一次。

我的PHP代码如下。

echo '<a href="'. base_url().'index.php/welcome/student/myhomework/'
.$userid.'" data-role="button" data-inline="true" data-transition="pop" 
data-icon="star" data-mini="true" data-theme="c">Missed Homework</a>';
4

1 回答 1

2

我在链接中添加了 data-ajax="false" ,问题就解决了。

于 2012-10-22T10:38:36.170 回答