Bootstrap

IE 兼容--replaceAll 不支持

方案:手写funcation,实现replaceAll 效果

function replace_All(sourceStr, oldStr, newStr){

        return sourceStr.replace(new RegExp(oldStr, "gm"), newStr); // g   全局匹配,不会遇到第一个就停止;   m   多行匹配

}

;