You have to be very stupid to ask such a simple question.
A simple search solves you problem:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr
str.substr(start[, length])
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substring
str.substring(indexStart[, indexEnd])
so you should use:
substring(0, yourTxt.length-3)
【 在 ora1555 (ora1555) 的大作中提到: 】
: substr(0,-2)好像不行哦
--
FROM 183.95.135.*