点击运行
JavaScript Getter 和 Setter
Getter 和 Setter 允许您通过方法获取和设置属性。
此例具有修改的 setter 以保护语言的大写更新。
运行结果