1
4
您可以声明一个变量来标识来自后端的数组的大小(如initialArraySize),然后在添加新行时验证该行的索引是否大于初始数组大小,如果为true,则使其可编辑。。
|
2
0
新空行的索引为
|
3
0
[attr.disabled]=“真”
在中添加属性
然后
|
4
0
请仔细查看以下代码:
索引1和3将被禁用 |
Kiara · 根据条件角度显示多个模板 1 年前 |
IonicMan · 剑道网格在宽度过大时不显示某些列 1 年前 |
Ben5 · 服务器端总是接触FormControl 1 年前 |
allforthenoob · 我该怎么分类? 1 年前 |
Hugh Jones · 如何创建适用于多个来源的自签名开发证书 1 年前 |
jthorn · 角度对象未在HTML中显示 1 年前 |
clem · 如何在Angular应用程序中突出显示页面的一部分? 1 年前 |
Kael · 在html表格中显示关系api数据-角度 2 年前 |