• Extjs4.1中图片数据源


            var jdPicStore = Ext.create('Ext.data.Store',{
                 fields: ['icon','evalValue'],
                    data: [
                        {
                            icon:'img/close.gif',
                            evalValue:null
                        },
                        {
                           icon:'img/smallGreen.png',
                           evalValue:'green'
                       },
                       {
                           icon:'img/smallYellow.png',
                           evalValue:'yellow'
                       },
                       {
                           icon:'img/smallRed.png',
                           evalValue:'red'
                       }
                    ]
            });

               var picStore4Erisiko = Ext.create('Ext.data.Store',{
                    fields: ['renderer','erisiko','icon'],
                    data: [{
                          renderer:"<img src='img/smallYellow.png' width='17' height='13'/>",
                          icon:'img/smallYellow.png',
                          erisiko:'Yellow'
                    },{
                          renderer:"<img src='img/smallGreen.png' width='17' height='13'/>",
                          icon:'img/smallGreen.png',
                          erisiko:'Green'
                    },{
                          renderer:"<img src='img/smallRed.png' width='17' height='13'/>",
                          icon:'img/smallRed.png',
                          erisiko:'Red'
                    }]
                });

  • 相关阅读:
    public interface IBaseService<T> where T:class, new()含义
    mvc多条件查询
    jquery select下拉框和 easy-ui combox 选定指定项区别
    .net 中主框架的搭建(2种方式)
    linq ->sql & linq->lambda中的cud
    mvc中日志的原理和使用步骤
    Sprint.Net和Mvc结合使用
    2017.5.12总结
    c#前端验证和后台验证总结
    matlab根据url链接下载*.tar文件并解压
  • 原文地址:https://www.cnblogs.com/renpei/p/5562900.html
Copyright © 2020-2023  润新知