如何将图像加载到javascript函数中? [英] How to Load the images into javascript function?

查看:69
本文介绍了如何将图像加载到javascript函数中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!这里我需要创建一个SlideShow.所以我决定使用javascript进行显示,并且必须将数据库中的图像加载到javascript函数中.
有人可以给我建议吗?

Hello Everyone !Here i have requirement of creating a SlideShow.So i decided to show using javascript and i have to load the images from Database in to javascript Function.
Can any one give me suggestion?

推荐答案

您需要一个中间层.您的JavaScript可以设置img标签的URL,并且URL可以指向从数据库中提取图像并返回数据的页面.
You need an intermediate layer. Your javascript can set the URL of an img tag, and your URL can point to a page which pulls the image from the database and returns the data.


这篇关于如何将图像加载到javascript函数中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆