function trim (strSource) {
re = /^\s+|\s+$/g;
return strSource.replace(re, '');
}
function ltrim (strSource) {
re = /^\s+/g;
return strSource.replace(re, '');
}
function rtrim (strSource) {
re = /\s+$/g;
return strSource.replace(re, '');
}
2 Articles, Search for 'Javascript'
- 2006/08/23 javascript String Trim
- 2006/08/23 javascript에서 Base64 인코딩/디코딩
var enc64List, dec64List; function base64Encode(str) { function base64Decode(str) { |
base64.txt


Leave your greetings.