WebSockets через соединение 3G

Использовать RegExp. Не забывайте избегать специальных символов.

s1 = s1.replace(/~+$/, ''); //$ marks the end of a string
                            // ~+$ means: all ~ characters at the end of a string
37
задан Janusz 19 October 2016 в 08:30
поделиться