javascript object member

メンバーを最初から定義するのではなく、 使っている最中に作ってしまうのが便利

var foo = { param1:"something", param2:"other thing" }
if ( foo.param3 === undefined } foo.param3 = "more thing";

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.