日期:2014-05-18 浏览次数:20509 次
var bimgurl = document.getElementById("div111").style.backgroundImage; bimgurl = bimgurl.replace('url(','').replace(')',''); alert(bimgurl);
------解决方案--------------------
var bimgurl = document.getElementById("div111").style.backgroundImage;
bimgurl = bimgurl.replace('url(','').replace(')','');
alert(bimgurl);
------解决方案--------------------
document.getElementById("div_background").style.backgroundImage.replace("url(","").replace(")","");
------解决方案--------------------
up
------解决方案--------------------
up