`
nzu06nzu
  • 浏览: 14964 次
最近访客 更多访客>>
社区版块
存档分类
最新评论

ReferenceError: Error #***:***上找不到属性 ***,且没有默认值

阅读更多

ReferenceError: Error #***:***上找不到属性 ***,且没有默认值
2011年07月12日
  网易博客安全提醒:系统检测到您当前密码的安全性较低,为了您的账号安全,建议您适时修改密码    立即修改  |  关闭
  使用itemEditor 自定义编辑状态下的组件,但是一个不小心就会出现ReferenceError: Error…等某某属性找不到这类的错误,例如: 
  
   
  
  
  
  
  
  
  
  
   如果这样使用就会报ReferenceError: Error #1069: 在 com.syswin.crm.resalehome.objective.views.YearObje ctiveManagement_inlineComponent3 上找不到属性 text,且没有默认值。
  原因:我指定了editorDataField="text",itemEditor使用了HBox组件,但是HBox组件里没有text 的get函数,所以HBox找不到text,如果editorDataField="value"就会出现找不到属性value;如果itemEditor使用的是TextInput之类的组件并且使用的组件有text属性,editorDataField指定的是text就不用写get函数了,因为组件自身已经有了属性值对应的get函数就不会报错了。 解决这类里问题的办法:在组件里提供一个editorDataField指定属性名的get函数,
  publicfunctionget text():String {
  return comName.text;         } 
  
  
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics