草庐IT

costantin

全部标签

javascript - 将 php json 转换为 javascript getJSON

你好stackoverflow社区,我为我对javascript/ajax的无知而道歉,但我很难将这个phpjson转换成javascript函数$json=file_get_contents('http://videoapi.my.mail.ru/videos/mail/alex.costantin/_myvideo/4375.json');$json_a=json_decode($json,true);$url=$json_a[videos][0][url];$img=$json_a[meta][poster];echo$url;echo$img;在此先感谢您提供的任何帮助Var_