티스토리

linuxism
검색하기내 프로필
Development/jQuery

jQuery - getJSON POST

linuxism 2012. 6. 8. 16:44


jQuery getJSON POST

Posted on October 27, 2009

Ever wanted a getJSON which does a post?

Here it is:

jQuery.extend({
    postJSON: function(url, data, callback)
    {
        $.post(url, data, callback, "json");
    }
});


출처 - http://kristofmattei.be/2009/10/27/jquery-getjson-post/




저작자표시 (새창열림)