我想從獲取注入文本區域的文本中獲取行數,出於某種原因,我無法獲取textarea來初始化行數,這裏是我的代碼。我究竟做錯了什麼?AngularJs綁定問題
<div class="form-group col-sm-12">
<textarea contenteditable="true"
rows="'iwofRecord.WhatHasBeenDone.split('\n').lenght'"
class="form-control form-control-plain"
ng-model="iwofRecord.WhatHasBeenDone"
placeholder="What Has Been Done">
</textarea>
</div>
你真棒,我是這樣的移民:-)! – eugenekgn