1. 首页
  2. 移动开发
  3. 其他
  4. angular ng model 无法获取值的处理方法

angular ng model 无法获取值的处理方法

上传者: 2020-12-13 07:22:35上传 PDF文件 23.89KB 热度 11次
该问题是由angular使用jq日期插件导致的无法双向绑定 <input id="dateDayStart" ng-model="dateDayStart" /> 解决方法:重新绑定 setInterval(function () { $scope.$apply(function () { $scope.params.dateDayStart = document.getElementById('dateDayStart').value; }); }, 100); 以上这篇angular ng-model 无法获取值的处理方法就是小编分享给大家
下载地址
用户评论