标签:默认 images 技术分享 end surface nes 占位符 ext 缓存
1 var imageStyleResult = new Ext.form.FieldSet({ 2 title:‘预览‘, 3 height:100, 4 items:[ 5 { 6 id:‘showFraction‘, 7 xtype: ‘box‘, //或者xtype: ‘component‘, 8 autoEl: { 9 tag: ‘img‘ 10 } 11 } 12 ] 13 14 });
Q1:在IE打开时会展示占位符?
A1:将box img src给个默认空白图片。
Q2:首次打开该页面时OK,再次打开任然展示占位符?
A2:js 清缓存,jsp添加:
1 <meta http-equiv="Expires" CONTENT="0"> 2 <meta http-equiv="Cache-Control" CONTENT="no-cache"> 3 <meta http-equiv="Pragma" CONTENT="no-cache">
或者ajax清缓存
1 $.ajax({ 2 type: "GET", 3 url: "InsertSurfaceRoughnessWord.js", 4 dataType: "text", 5 beforeSend :function(xmlHttp){ 6 xmlHttp.setRequestHeader("If-Modified-Since","0"); 7 xmlHttp.setRequestHeader("Cache-Control","no-cache"); 8 9 } 10 });
我只增加了第一个!记录
标签:默认 images 技术分享 end surface nes 占位符 ext 缓存
原文地址:http://www.cnblogs.com/yt2017/p/6374449.html