trim
-
-
-
.trim() in JavaScript not working in IE I tried to apply to a string in one of my JavaScript programs. It's working fine under Mozilla, but an error displays when I try it in IE8. Does anyone know what is going on here? Is there anyway I can make it work in IE? code:
-
如何在Javascript中将字符串修剪为N个字符? 我如何使用Javascript制作一个函数,该函数将字符串作为参数修剪为指定长度,也作为参数传递。例如: 有人有想法吗?我听说过一些关于使用子字符串的东西,但不太明白。
标签