zoukankan      html  css  js  c++  java
  • 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'
                    }]
                });

  • 相关阅读:
    CF 1114D(538,div2) Flood Fill
    UVA 1640 The Counting Problem
    UVA 11971 Polygon
    UVA 1639 Candy
    CCPC 2019 秦皇岛 Angle Beats
    UVA1153-Keep the Customer Satisfied(贪心)
    UVA1613-K-Graph Oddity(贪心)
    UVA11925-Generating Permutations(贪心)
    UVA11491-Erasing ans Winning(贪心)
    UVA12545-Bits Equalizer(思维)
  • 原文地址:https://www.cnblogs.com/renpei/p/5562900.html
Copyright © 2011-2022 走看看