为什么angulajs中设置radio的一个按钮prop('checked','true')后再选择另一个按钮时,按钮的ng-model没有改变,也就不能监听到???
迷茫2017-05-15 16:52:24
After an afternoon of brain-dead work, I finally found out why I still need to use jquery to operate the dom when I can directly use ng-model to control it. This can only show that my IQ was infinite at the time~~~Also, I can’t Because the monitoring is performed in the child scope, the object ng-model='object.xx' must be used instead of ng-model='xx'. Otherwise, changes in the child scope cannot change the parent scope. In fact, it is recreated. A value, which is related to the prototype chain of javascript. It’s just my fault that I didn’t see it clearly. It was all tears!