【js/jquery常用方法】字符串全替换 var str = "2018/4/28" ------2018/4/28 str = str.split("/").join("-"); ------2018-4-28