根据条件加载图像 [英] load the image depending upon the condition
本文介绍了根据条件加载图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的if条件下,如果满足条件,则必须显示图像,如果条件失败,则必须显示另一幅图像.
我的代码:
In my if condition,if my condition is satisfied ,i have to display an image,and if the condition fails then i have to display another image.
my code:
function IsActveDisplay(status) {
if (status == "1")
return "<img src=C:\Users\Desktop\kendoui grid\person.png/>";
else
return "<img src= F:\KendoGrid\styles\Metro\loading.gif/>";
}
我以这种方式给出.它正在为这两个动作显示一些默认图像.我想为此获得确切的图像.如何返回图像?
i gave in this way.it is displaying some default image for the both actions.i want to get the exact images for this.how i have to return the image?
推荐答案
您能提到您要为哪个变量设置函数返回的值吗
Can you mention to which variable are you setting the value which the function returns
这篇关于根据条件加载图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文