{"url":"https://c4se.hatenablog.com/entry/2013/09/09/124309","image_url":null,"blog_title":"c4se\u8a18\uff1a\u3055\u3063\u3061\u3083\u3093\u3067\u3059\u3088\u2606","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/Kureduki_Maari/","type":"rich","categories":["Programming","JavaScript"],"author_name":"Kureduki_Maari","width":"100%","provider_url":"https://hatena.blog","height":"190","version":"1.0","blog_url":"https://c4se.hatenablog.com/","title":"JavaScript\u3067singleton\u3092\u4f5c\u308b","description":"view\u3092class\u306b\u3057\u305f\u308a\u3057\u3066\u3090\u308b\u3068\u3001\u5176\u308c\u3092singleton\u306b\u3057\u3068\u304f\u3068\u3001debug\u306b\u4fbf\u5229\u3060\u3063\u305f\u308a\u3002\u5225\u306b\u306a\u3093\u3089\u65b0\u3057\u3044\u3053\u3068\u3067\u306f\u306a\u3044\u3051\u3069\u3001\u6b64\u3046\u4e91\u3075\u306e\u306f\u4f55\u5ea6\u66f8\u3044\u3066\u3082\u76ee\u306b\u3064\u3044\u3066\u3090\u306a\u3044\u4eba\u306f\u5c45\u308b\u3002 JavaScript\u3067singleton\u3092\u4f5c\u308b\u306e\u306f\u3001\u306a\u3093\u3089\u73cd\u3057\u3044\u3053\u3068\u3067\u306f\u306a\u3044\u3002 var object = { prop: 'property', method: function() { } }; \u3053\u308c\u3067\u3088\u3044\u3002new\u3082constructor\u3082\u4f55\u3082\u7121\u3044\u3002\u304a\u304b\u3057\u3044\u3068\u3053\u308d\u306f\u4f55\u3082\u7121\u3044\u3002\u7121\u7406\u306bclass\u306b\u3059\u308b\u524d\u306b\u691c\u8a0e\u3059\u308b\u3068\u597d\u3044\u3002 \u52ff\u8ad6\u3001\u95a2\u6570\u3068\u3057\u3066constructor\u3092\u547c\u3073\u51fa\u3059\u5f62\u5f0f (class) \u3082JavaScrip\u2026","published":"2013-09-09 12:43:09","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fc4se.hatenablog.com%2Fentry%2F2013%2F09%2F09%2F124309\" title=\"JavaScript\u3067singleton\u3092\u4f5c\u308b - c4se\u8a18\uff1a\u3055\u3063\u3061\u3083\u3093\u3067\u3059\u3088\u2606\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}