{"width":"100%","title":"ECMAScript 5th \u7684 LazyGetter","image_url":null,"published":"2011-03-26 00:00:00","height":"190","author_name":"teramako","provider_name":"Hatena Blog","type":"rich","url":"https://teramako.hatenadiary.org/entry/20110326/p1","description":"ECMAScript 5th \u304b\u3089\u6b63\u5f0f\u306b getter/setter \u304c\u4f5c\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u308f\u3051\u3060\u304c\u3001\u3053\u308c\u306fMozilla \u306e JavaScript \u3067\u3042\u308b SpiderMonkey \u3067\u306f\u524d\u3005\u304b\u3089\u5b9f\u88c5\u3055\u308c\u3066\u3044\u305f\u3002 { get foo() { return ...; } } { set foo(val) { return ...; } } \u306b\u52a0\u3048\u3001 Object.prototype.__defineGetter__ Object.prototype.__defineSetter__ \u304c\u4f7f\u3048\u305f\u308f\u3051\u3060\u3002\u3067\u3001\u3053\u308c\u3092\u4f7f\u7528\u3057\u305f\u30cf\u30c3\u30af\u3068\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3082\u306e\u304c\u3042\u308b\u3002 function Foo () { thi\u2026","author_url":"https://blog.hatena.ne.jp/teramako/","blog_title":"hogehoge @teramako","categories":["JavaScript"],"version":"1.0","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fteramako.hatenadiary.org%2Fentry%2F20110326%2Fp1\" title=\"ECMAScript 5th \u7684 LazyGetter - hogehoge @teramako\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://teramako.hatenadiary.org/"}