///import core ///commands 插入背景 ///commandsName background ///commandsTitle 插入背景 ///commandsDialog dialogs\background UE.plugins['background'] = function(){ var me = this; me.addListener("getAllHtml",function(type,headHtml){ var body = this.body, su = domUtils.getComputedStyle(body,"background-image"), url=""; if(su.indexOf(me.options.imagePath)>0){ url = su.substring(su.indexOf(me.options.imagePath),su.length-1).replace(/"|\(|\)/ig,""); }else{ url = su!="none" ? su.replace(/url\("?|"?\)/ig,""):""; } var html = ' '; headHtml.push(html); }); }