ng-if会改变scope的作用域 解决方法: 1.ng-if 父级作用域 parent scope去获取 2.ng-if 改为ng-show 转载于:https://www.cnblogs.com/lyxverycool/articles/7323687.html