get定义方法——Javascript设置对象属性为"只读"

get 定义方法时,表示该方法只能被读取

 

参考:https://www.cnblogs.com/season-huang/p/seasonhuang.html

posted @ 2020-03-30 19:02  终南墨客  阅读(371)  评论(0编辑  收藏  举报