[SOLVED] String.Trim method with parameter not working
Posted: Thu Feb 18, 2016 8:33 am
Hi,
the String.Trim(char c) method is not working in browsers (tested on IE and Chrome):
--> results in exception: "TypeError: "testStringxxx".Trim is not a function".
It's not critical, but a bit annoying - if you are testing with the debugger during implementation, everything is working fine - testing in browsers causes exceptions..
Best Regards,
Christoph
the String.Trim(char c) method is not working in browsers (tested on IE and Chrome):
Code: Select all
var testStr = "testStringxxx";
var trimmed = testStr.Trim('x');
--> results in exception: "TypeError: "testStringxxx".Trim is not a function".
It's not critical, but a bit annoying - if you are testing with the debugger during implementation, everything is working fine - testing in browsers causes exceptions..
Best Regards,
Christoph