Below is the function that does some stuff.
ns.Line2Point = function (params) {
points = params.points;
// code here
};
In the code above, params object contains a points object. So, when I want to call Line2Point method, I must create a object, and it contain points object. But, I don\’t know how to in Javascript. I just have some ideas like the code below, but don\’t know it true or false:
var params;
var points;
// some code to initialize for points object
params.points = points
ns.Line2Point(params)
Please teach me this. Thanks





Rating:
The post javascript – How to assign object inside another object appeared first on Javascript ASK.
via Javascript ASK http://javascriptask.phpfogapp.com/javascript-how-to-assign-object-inside-another-object.html
No comments:
Post a Comment