Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/457.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Emberjs-调试器在{{{each}}未加载模型时不显示错误_Javascript_Debugging_Ember.js_Google Chrome Devtools - Fatal编程技术网

Javascript Emberjs-调试器在{{{each}}未加载模型时不显示错误

Javascript Emberjs-调试器在{{{each}}未加载模型时不显示错误,javascript,debugging,ember.js,google-chrome-devtools,Javascript,Debugging,Ember.js,Google Chrome Devtools,我正在使用{{#each}}手柄来显示记录名列表。未显示记录名称。我没有收到任何错误,Chrome Extension Ember调试器仅显示 "RecordCategories recordCategories <DS.RecordArray:ember923> Send to console VpcYeoman.RecordCategoriesController Send to console VpcYeoman.RecordCategoriesView Send to con

我正在使用{{#each}}手柄来显示记录名列表。未显示记录名称。我没有收到任何错误,Chrome Extension Ember调试器仅显示

"RecordCategories
recordCategories
<DS.RecordArray:ember923> Send to console
VpcYeoman.RecordCategoriesController Send to console
VpcYeoman.RecordCategoriesView Send to console"

我还应该提到,我在几天前就开始工作了。我与另一个团队的代码合并,出现了此问题。

在回答您的问题时,我应该如何找出此错误的来源:

  • 在模板{{log model}}、{{log model.length}中使用日志记录
  • 将模型注入页面{{model},{{model.length}
  • 使模型成为一个全局变量,并在控制台globalVar.get('length')中使用它

  • Ember不会报告非错误,也就是说,如果您没有数据,则如果集合为空,则不是错误。如果您试图在非集合上进行迭代,这将是一个错误。

    当您说“无”出现在“数据”部分时,是否意味着您看不到左侧的模型对象?或者你的意思是
    #Records
    为零?另外请提及您正在使用的Ember、EmberData和Chrome调试器的版本。我在旁边看到了模型对象(App.RecordCategory)但是#记录是0我已经发布了Ember和chrome的版本,但是我不知道检查我的EmberData版本的命令是什么。我需要把{{log model}放在我的模型的{{each}括号之间吗?数据一直显示在一个旧版本中,直到我将它与另一个团队的代码合并后,它才这样做。是的,{{log this}}可能也适用于那里,这只是调试东西的一种方式。这个工具非常方便!谢谢你(再次)前来救援。我修复了不是bug的bug,而是添加了vpCyEoMang.ApvialAddiabase= Ds.LSsAdvultExchange({});在store.js中,我问了另一个与此相关的问题。
    Chrome Version  = 33.0.1750.152,
    Ember --version = 0.2.8, (I'm not sure why it is displaying the ember tools version instead of the ember version)
    Ember Data Version = ? ( i could not find where to check the version of this)