【发布时间】:2016-04-27 08:34:56
【问题描述】:
我目前正在使用Firebase 和Ionic 构建一个移动应用程序,我必须使用firebase 的json 链接,该链接在我的html img ng-src 中包含一个图像url。
这是包含图片网址的Json link。
我想将此链接放入 img 并获取此 json 链接 ("https://lh3.googleusercontent.com/-XdUIqdMkCWA/AAAAAAAAAAI/AAAAAAAAAAA/4252rscbv5M/photo.jpg") 中包含的 url 并显示图像,但我不知道该怎么做?
到目前为止,这是我在 html 中的内容。
<img src="'https://wellesleytesting.firebaseio.com/userProfile/userimg.json'" />
任何帮助将不胜感激!谢谢!
【问题讨论】:
-
wellesleytesting.firebaseio.com/userProfile/userimg.json '"/> 我的意思是这就是我目前所拥有的
-
该 JSON 链接现在指向
null,这是您应该在问题本身中包含 JSON(作为文本,没有屏幕截图)而不是链接到它的原因之一。
标签: javascript html json firebase