-1
function one(R) {
# do some thing..
$.ajax({
'url': '/one?search=' + R.val(),
#some thing common here
}
function two(R) {
# do some thing..
$.ajax({
'url': '/two?search=' + R.val(),
#some thing common here
}
를 리팩토링,하지만 난이 개선 얻을 수 리팩토링 것 같아요?어떻게, 잘 jQuery를 (다른에만 AJAX의 URL)