JavaScript

Redjini WiKi


setTimeout
setTimeout(function(){ 
    alert("Hello"); 
}, 3000);
String Trim
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, '');
}
참고