正则表达式

_bgUrl = _bgUrl.replace(/^https?:\/\/.+?\//, "/");
//_bgUrl = _bgUrl.replace(/^(https?:)?\/\/.+?\//, "/");

相关推荐