search

Home  >  Q&A  >  body text

angular.js - angularJs的ng-repeat

angularJs的ng-repeat循环一组<input>的控件,每个控件之间加一个字符串“xxx”,这个字符串怎么加入进去?

迷茫迷茫2748 days ago504

reply all(3)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-15 17:07:19

    <p class="list">
        <p ng-repeat="item in list">
            <input type="text" ng-model="item.name"/>
            <span>{{item.title}}</span>
        </p>
    </p>

    reply
    0
  • 黄舟

    黄舟2017-05-15 17:07:19

    <ng-repeat-start='item in list'></ng-repeat-start>
        <span ng-bind='item.title' />
        <input type='text' ng-model='item.name' />
    <ng-repeat-end></ng-repeat-end>

    reply
    0
  • 某草草

    某草草2017-05-15 17:07:19

    Owner, please post the code of the final effect you want to output and have a look

    reply
    0
  • Cancelreply