JavaScript字符串翻转方法汇总 方法一:
/*** @param str 传入字符串* @param type 截取符号*/function reverse(str,type){var news = str.split(type).reverse()return news}