c# - Create new Dictionary with javascript -


i trying figure out how c# "function" in javascript having no luck!?

here c#:

var parameters = new dictionary<string,string> {     { "link", "http://mysite.com" },     { "name", "this test" } }; 

i want think have use "new array" not sure how this?

any appreciated , in advance :-)

here great explanation: javascript associative arrays demystified

var parameters = new array(); parameters['link'] = 'http://mysite.com'; parameters['name'] = 'this test'; 

Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -