private _PLACEHOLDER: string; @Input() public set placeholder(v: string) { this._PLACEHOLDER = v; } public get placeholder(): string { if (this._PLACEHOLDER) { return this._PLACEHOLDER; } else { return ''; } }
private _PLACEHOLDER: string; @Input() public set placeholder(v: string) { this._PLACEHOLDER = v; } public get placeholder(): string { if (this._PLACEHOLDER) { return this._PLACEHOLDER; } else { return ''; } }
转载于:https://www.cnblogs.com/mlh1421/p/11506927.html