html - 如何调用团队名称/文本并以 html 显示。 the/is messing it up 搞砸了

标签 html css json

{ 偏移量:0, 结果: [ { teamname_link/_text: "BAL", teamname_link:“http://www.usatoday.com/sports/mlb/orioles/”, },

最佳答案

如果是javascript,你可以使用数组表示法。

var result = '{ offset: 0, results: [ { teamname_link/_text: "BAL", teamname_link: "http://www.usatoday.com/sports/mlb/orioles/" ]}';
console.log(result.results[0]['teamname_link/_text']);

关于html - 如何调用团队名称/文本并以 html 显示。 the/is messing it up 搞砸了,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32491701/

相关文章:

html - ie9 和 firefox 无法识别 html 标签上的自定义属性

html - 部分填充的 CSS 三 Angular 形

css - 更改交替行字体颜色

javascript - 将 JSON 内容加载到 meteor 模板中

javascript - 如何从 JavaScript 中的 join() 值中仅获取键值?

javascript - struts2 textarea只给一个word添加样式

javascript - 锁定/卡住导航栏/整个 html 页面,直到加载其他 html 页面

jquery - 如何在另一个元素淡入时淡出一个元素

css - 导航中的 mainmenu.area 导致移动 View 右侧出现白色间隙

javascript - $http.post 400 服务器上的空 json 正文