代码如下:
for (const key of Object.keys(this.form.controls)) {
console.log(key);
if (this.form.get(key).value === 'null') {
this.form.get(key).setValue(null);
}
}
代码如下:
for (const key of Object.keys(this.form.controls)) {
console.log(key);
if (this.form.get(key).value === 'null') {
this.form.get(key).setValue(null);
}
}