当前位置: 代码迷 >> Web前端 >> ext初记
  详细解决方案

ext初记

热度:4   发布时间:2012-10-06 17:34:01.0
ext小记

1.后台数据库是多字段联合主键,前台grid使用id返回数据内容,只有一条数据,而数据库中有多条,可能解决方法,改变

id名称。

2.firefox可以正常显示页面内容,而IE报页面加载错误,可能原因是有逗号冗余。firefox可以忽略多于符号,而IE不可以。

3.ext页面处于不断加载状态可能原因: 1.组件id有重复值 2.组件name有重复值 3 加载页面有冗余代码

4.ie中报‘isColumn 为空或不是对象’,ff中不报改错,是grid的columns:最后一列多了一个逗号的原因

5.ext store 在前台指定数值,不需要后台传值,便于测试

  1. store: new ?Ext.data.SimpleStore({ ??
  2. ??????fields:[ 'id' , 'name' , 'descript' ], ??
  3. ??????data:[ ??
  4. ????????[1, 'name001' , 'this?is?name001' ], ??
  5. ????????[2, 'name002' , 'this?is?name002' ], ??
  6. ????????[3, 'name003' , 'this?is?name003' ], ??
  7. ????????[4, 'name004' , 'this?is?name004' ] ??
  8. ??????] ??
  9. ????}), ?
  相关解决方案