【发布时间】:2016-02-26 23:47:14
【问题描述】:
我想使用调试器在$.each 循环中检查来自test_data(传递到populateChildTable 的对象)的一些属性。当我尝试使用调试器访问它们时出现undefined 错误
var populateChildTable = function(test_data) {
$.each(test_data.children, function(index, el) {
$('#my_children tbody')[0].appendChild(createChildRow(el)); // breakpoint here
})
})
Chrome 版本 48.0.2564.71 测试版(64 位)
【问题讨论】:
-
当然可以在循环内使用
test_data?你试过了吗 -
是 children() 吗? api.jquery.com/children
-
编辑帖子以提出不同的问题。傻我,我知道有问题
标签: javascript jquery google-chrome scope