개발/javascript Tip
ajaxSetup / beforeSend Event
.ajaxPrefilter$.ajaxPrefilter( function( options, originalOptions, jqXHR ) { // Add data to ajax option if (options.url.match(/www\.example\.com/i) !== null) { originalOptions.data.token = 'i_am_token' } });To add token when url is www.example.com-> it not work!In console/debugger originalOptions Object is added token property, but request sent not having token parameter.ajaxSetup / beforeSend E..
2014.01.12