javascript function subfunction code example
Example: javascript function subfunction
var test = {
this: function ()
{
console.log(test.data);
},
data: 'hello',
set: function (data)
{
test.data = data;
}
};
// test.this(), this.set("test")