【问题标题】:angularjs , any idea how to include "" in ng-bind=""angularjs,知道如何在 ng-bind="" 中包含 ""
【发布时间】:2015-11-30 12:18:10
【问题描述】:

知道如何使用 ng-bind angular 在 html 输入中输入>> phoneNo["phoneno"] 吗? phoneNo["phoneno"]如果使用{{phoneNo["phoneno"]}}可以显示,但是当我输入时它会变成语法错误

<input class="form-control" type="text"  ng-bind="phoneNo["phoneno"]" readonly />

【问题讨论】:

  • ng-bind="phoneNo['phoneno']" 不行吗?

标签: html angularjs html-input ng-bind


【解决方案1】:

只需 "phoneNo['phoneno']"'phoneNo["phoneno"]'

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-12-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多