【问题标题】:call html page with jquery-mobile in a iframe在 iframe 中使用 jquery-mobile 调用 html 页面
【发布时间】:2012-06-04 08:43:31
【问题描述】:

我在 iframe 中调用 html5 页面。为了防止缓存,我这样称呼页面:

...不是无关代码...

<iframe  id="contentframe1" name="contentframe1" frameborder="0" scrolling="No"   src="" height="432" width="100%"> </iframe>   

...不是无关的代码

调用html5+jquery-mobile页面的Javascript代码...

$("#contentframe1").attr('src',urlVista);
var d= new Date();      

var urlVista="usuarios/"+parent.parent.Nb_Global_usuario+"/aplicaciones/"+parent.parent.Nb_Global_aplicacion+"/appfiles/vistas/"+LinkTab[aux]+".html?"+d.toString();

你怎么能看到我用非缓存模式调用这个页面。问题:

在 html5+jQuery-Mobile 页面我有一个多页。

PageA 调用 PageB..正确!!

但是当 PageB 执行后退按钮操作时,会出现下一个错误:

Uncaught Error: Syntax error, unrecognized expression: 0200%20(Hora%20de%20verano%20romance]') 

解决方案是删除未缓存模式...但我需要在没有缓存的情况下加载页面。

有什么办法吗?

【问题讨论】:

    标签: javascript jquery html jquery-mobile browser-cache


    【解决方案1】:

    您应该将字符 "(" , ")" , " " 替换为空, d=d.toString().replace('(','').replace(')','').replace(' ','');

    【讨论】:

      猜你喜欢
      • 2018-12-02
      • 1970-01-01
      • 2014-01-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多