sw.grokcore.jsonp. ¼øÀ§ ¹× ¿ä¾à
- °Ô½ÃÀÚ À̸§:
- Sebastian Wehrmann
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- https://bitbucket.org/sweh/
sw.grokcore.jsonp. ű×
sw.grokcore.jsonp. ¼³¸í
sw.grokcore.jsonp´Â GrokÀÇ ±âº»º¸±âÀ̹ǷΠGrok ÀÀ¿ë ÇÁ·Î±×·¥¿¡ JSON-P¸¦ È£Ãâ ÇÒ ¼ö ÀÖ½À´Ï´Ù. ±×°ÍÀº grokcore.json.json view¸¦ Á¦¿ÜÇÏ°í´Â °ÅÀÇ µ¿ÀÏÇÏ°Ô ÀÛµ¿ÇÕ´Ï´Ù. »ç½Ç, view°¡ ¹Ýȯ ÇÑ JSON µ¥ÀÌÅ͸¦ ·¡ÇÎÇÏ´Â ¿äû¿¡ÀÖ´Â JavaScript ÄݹéÀÇ À̸§ÀÌ ÇÊ¿äÇÕ´Ï´Ù. >>> Import Sw.GrokCore. JSON >>> Class MyView (sw.grokcore.jsonp.jsonp) : ... ...... DEF µ¥ÀÌÅÍ (ÀÚü) : ... ¹Ýȯ { 'foo': 1234} >>> Àμâ http ( 'get / data? Äݹé = jquery-123 http / 1.1 ') http / 1.0200200 okcontent-length : 30Content-type : ÀÀ¿ë ÇÁ·Î±×·¥ / json jquery-123 ({'foo ': 1234}); Á¦Ç°ÀÇ È¨ÆäÀÌÁö
sw.grokcore.jsonp. °ü·Ã ¼ÒÇÁÆ®¿þ¾î