小编Oni*_*niz的帖子

Jquery Mobile:强制刷新内容

我有一个很大的问题:我有一个listview和每个项链接到页面#concorsi.当我点击链接时,URL成为#concorsi?numero=1因为我从JSON中获取表单号1.

当我第一次点击它一切都好.每个输入都是用jQuery Mobile类可视化的,但是如果我回来并进入相同的链接后代码不会刷新.标题很好地可视化但内容没有.如何强制刷新div内容?

这些是我的JavaScript函数:

<script type="text/javascript">
$(document).bind( "pagebeforechange", function( e, data ) {
    // We only want to handle changePage() calls where the caller is
    // asking us to load a page by URL.

    if ( typeof data.toPage === "string" ) {
        // We are being asked to load a page by URL, but we only
        // want to handle URLs that request the data for a specific

        var u = $.mobile.path.parseUrl( data.toPage ), …
Run Code Online (Sandbox Code Playgroud)

jquery jquery-mobile

24
推荐指数
1
解决办法
7万
查看次数

标签 统计

jquery ×1

jquery-mobile ×1