SenchaTouch中出现数据覆盖 以及 “Cannot call method 'setData' of nul”l错误的可能原因
2014-09-26 22:15
501 查看
SenchaTouch中出现数据覆盖 的可能原因
当在ST系统中有多出Store使用同一个Model时,如果两个不同 Store的data中的 id 字段有重复的,则会出现数据紊乱的现象,比如两个列表使用不同的Store但都引用了同一个Model 在两个Store中data的id字段有重复的,将会导致列表数据现实错乱。“Cannot call method 'setData' of nul”l错误的可能原因
sencha touch 中 给list设置数据时当使用 Ext.getCmp('pernotify_id').getStore().setData(data); 时
其 list中必须 显式的配有 store属性。 否则报
Uncaught TypeError: Cannot call method 'setData' of null
因为其 .getStore() 返回 null
相关文章推荐
- error at ::0 can't find referenced pointcut..可能出现错误的原因
- error at ::0 can't find referenced pointcut..可能出现错误的原因 (装载)
- (启动H5本地存储)WebView显示网页出现Uncaught TypeError: Cannot call method 'getItem' of null异常
- error at ::0 can't find referenced pointcut..可能出现错误的原因
- error at ::0 can't find referenced pointcut..可能出现错误的原因
- Uncaught TypeError: Cannot call method 'substring' of undefined
- vs.net C# 连接数据库 出现错误 用户 '(null)' 登录失败。原因: 未与信任 SQL Server 连接相关联
- Uncaught TypeError: Cannot call method 'replace' of undefined 的解决
- This EntitySet of Type 'Data.Tbl_Student' does not support the 'Add' operation.原因
- iis6应用程序池被自动禁用问题 Service Unavailable 应用程序池 'DefaultAppPool' 被自动禁用,原因是为此应用程序池提供服务的进程中出现一系列错误。应用程序-特定 权限设置未将 COM 服务器应用程序(CLSID 为
- PLS-S-00201, identifier 'CALLDEMO.GET_EMPLOYEES' must be declared 预编译错误原因及解决办法
- Extjs4---Uncaught TypeError: Cannot call method 'hasOwnProperty' of undefined
- 出现:'DataTypeEnum' : ambiguous symbol 错误怎么办?
- Extjs4---Uncaught TypeError: Cannot call method 'apply' of undefined
- cannot call methods on masonry prior to initialization; attempted to call method 'appended' 瀑布流
- VC++6.0运行OpenGL 出现错误Cannot open include file: 'GL/glut.h'是什么问题?
- VC++ 出现错误:cannot convert from const char *' to 'LPCWSTR' 或者'const char [7]' to 'LPCWSTR' 的解决方法
- Spring配置文件加载时出现Bean property 'newscontentDAO' is not writable or has an invalid setter method错误的解决
- ReportViewer ...'Main Report' is invalid...错误另一可能原因
- extjs4.1中出现Cannot read property 'fn' of undefined的错误