Home >Web Front-end >JS Tutorial >javascript trim, ltrim, rtrim custom functions_javascript skills

javascript trim, ltrim, rtrim custom functions_javascript skills

WBOY
WBOYOriginal
2016-05-16 19:00:421112browse


How to use <script> <BR>function aaa() <BR>{ <BR>var s=document.getElementById("文本框ID").value; <BR>alert(trim(s)); <BR>} <BR></script>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn