字符串去掉前后空格

代碼:

<!DOCTYPE html>

<html>

<body>

 

<%

name = " W3Cschool "

response.write("visit" & name & "now<br>")

response.write("visit" & trim(name) & "now<br>")

response.write("visit" & ltrim(name) & "now<br>")

response.write("visit" & rtrim(name) & "now")

%>

 

</body>

</html>

結(jié)果:

visit W3Cschool now
visitW3Cschoolnow
visitW3Cschool now
visit W3Cschoolnow

相關(guān)文章
亚洲国产精品第一区二区,久久免费视频77,99V久久综合狠狠综合久久,国产免费久久九九免费视频