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

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -