我在代码中发现了一个问题...我试图调试并最终做了一些简单的事情:
$scope.activity = {
subject: null,
activity_type_id: null,
description: null,
date: null,
time: null,
duration: null,
set_as_done: false,
attaches: {
company: 'test',
people: null,
deal: null
}
};
console.log($scope.activity);
当打印到控制台时,我在$ scope.activity.attaches.company中得到“NULL”而不是“test”......
但是,如果我打印
console.log($scope.activity.attaches)
我得到了正确的价值......此刻完全迷失了......