javascript - How to create data model dynamically -


I have this Jason data that I get from the server in JavaScript

  var mydata = JSON Pars ('["X", "Y", "Z"]');   

Below I have the following data model in javascript. Precise var mySchemasList = {schema: [New selection schema model ("A", wrong) , Select the new Skemmodel ("B", false), new selection highimode ("C", wrong)]};

I want to dynamically obtain this model data from mydata ('A', 'B', 'C').

Any help is sincerely appreciated ..

thanks

Can not you do just that? var i var mySchemaList = {schema: []}; For (i = 0; i

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -