0

Angular JS のドロップダウン変更イベントの問題に直面しています。ng-change イベントが発生しないことがあります。

<tr ng-repeat="Item in Items">
    <td>
        <select id="abc" ng-model="Item.Value" 
                ng-change="Change('P1',P2,{{Items.length}})" 
                ng-options="Val for Val in Options">
        </select>
    </td>
</tr>

誰が何が悪いのか説明してもらえますか?

ありがとう

4

2 に答える 2

1

これを試して

 <select id="abc" ng-model="Item.Value" ng-change="Change('P1',P2,Items.length)" ng-options="Val for Val in Options">

は式を期待するので{{ }}、必要ありません。ng-change

于 2015-03-17T08:53:29.800 に答える