ajax_js
javascript endwith function
idkbj
2014. 1. 7. 10:15
function endsWith(str, suffix) { return str.indexOf(suffix, str.length - suffix.length) !== -1; }
ex) if(endWith(filename, 'docx')){
alert('ms word 파일.');
}