delete the last string from file in typescript ; 1. if(x.lastIndexOf("\n")>0) { ; 2. return x.substring(0, x.lastIndexOf("\n")); ; 3. } else { ; 4. return x; ; 5. }.
確定! 回上一頁