【发布时间】:2021-07-18 17:38:42
【问题描述】:
我在 EXTJS 中有一个 iframe 组件,我在其中加载外部 html 文件:
{
xtype: "component",
border: false,
layout: 'fit',
flex: 1,
autoEl: {
width: '100%',
height: '100%',
tag: "iframe",
src: 'resources/startpage/index.html'
}
}
我希望 iframe 在我更改外部 html 文件时自动加载新内容,但它会加载缓存中的先前文件。有办法吗?
类比图片文件,我试着把
src: 'resources/startpage/index.html' + '?_dc=' + (new Date())*1
但这不起作用,
【问题讨论】:
标签: javascript html caching iframe extjs