码迷,mamicode.com
首页 > Web开发 > 详细

extjs box img src用IE打开时展示占位符

时间:2017-02-07 16:12:04      阅读:199      评论:0      收藏:0      [点我收藏+]

标签:默认   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         });

我只增加了第一个!记录

 

extjs box img src用IE打开时展示占位符

标签:默认   images   技术分享   end   surface   nes   占位符   ext   缓存   

原文地址:http://www.cnblogs.com/yt2017/p/6374449.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!