我有模特:
$scope.newTask = function() {
return {
ProjectID: null,
ProjectName: null,
Date: getDate(),
TaskDescription: null,
TimeWorked: '1',
Note: null,
isSaved: false
};
};
我更新了模型:
$scope.newTask = function() {
return {
ProjectId: null,
ProjectName: null,
Date: getDate(),
Task: null,
TimeWorked: '1',
Note: null,
isSaved: false
};
};
更新后,我的浏览器会返回带有旧字段的模型。我怎么能解决这个问题?我不需要对象中的旧字段......