javascript - Json first object is a *, how to get it? -


this question has answer here:

if run:

$("#results ul").append(data.parse.langlinks.map(function(val){ return "<li>" + val.lang + "</li>" })); 

i correct values of lang need first object , doesn't have verbal naming has

*

so when try access val.* get:

uncaught syntaxerror: unexpected token *

jsfiddle

access object this: val['*'] .


Comments

Popular posts from this blog

html - How to custom Bootstrap grid height? -

javascript - pass values from mssql to views in node -

image - python get coordinates (pixels) of corresponding points from clicks -