从后往前查找去掉字符串最指定元素

paramsStr = paramsStr.substr(0,paramsStr.lastIndexOf('&'))

原文地址:https://www.cnblogs.com/fdxjava/p/12104530.html