Results 1 comments of Raonet

> function delLast (str,del) { > if (tpeof str !== 'string') { > alert('请确认要删除的对象为字符串!'); > retrun false; > } else { > let index = str.lastIndexOf(del); > str.substring(0,index ) +...