我在 Sencha Touch 2 中使用滑块功能
我的容器如下所示:
   xtype: 'container',
   height: 149,
   minHeight: 480, 
   ui: 'dark', width: 283, 
   items: [ { 
       xtype: 'sliderfield',
       border: 4,
       docked: 'top',
       height: 42,
       itemId: 'alphaSliderField', 
       width: 280,
       label: 'Profilgewichtung', 
       labelWidth: '44%', 
       value: [ 0 ],
       increment: 0.5,
       maxValue: 1 
    },
现在我想使用它的值,它可以是 0 、 0.5 和 1。问题是这个数字被方括号括起来,我只能在没有这些括号的情况下使用它。
谁能告诉我我该如何解决这个问题?谢谢你。