search

Home  >  Q&A  >  body text

angular.js - angularjs如何动态改变ng-model值,在controller中获取input中输入的值并组合post发送到后台

使用angularjs处理input中输入的值并组合起来传递给后台,输入框的个数也是后台动态获取的

请问有什么办法或者思路嘛?

为情所困为情所困2745 days ago615

reply all(3)I'll reply

  • 大家讲道理

    大家讲道理2017-05-15 17:06:49

    ng-model two-way data binding
    $watch monitors value changes

    It is recommended to read more documents

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-05-15 17:06:49

    ng-model two-way data binding
    $watch monitors value changes

    It is recommended to read more documents

    reply
    0
  • 迷茫

    迷茫2017-05-15 17:06:49

    My approach is to process the data obtained in the background, add an item to each set of data in ng-repeat, and use it to loop for data binding, so that I can obtain the key-value pair corresponding to each item and encapsulate it

    reply
    0
  • Cancelreply