SORU
15 Temmuz 2009, ÇARŞAMBA


$.(param ) ters fonksiyon JavaScript / jQuery

Verilen aşağıdaki form:

<form>
    <input name="foo" value="bar">
    <input name="hello" value="hello world">
</form>

$.param( .. ) form seri hale getirmek için inşa kullanabilirsiniz:

$.param( $('form input') )

=> foo=bar&hello=hello world

Nasıl JavaScript ile yukarıdaki Dize serisini ve karma geri alabilir miyim?

Örneğin,

$.magicFunction("foo=bar&hello=hello world")

=> {'foo' : 'bar', 'hello' : 'hello world'}

Referans: jQuery.param( obj ).

CEVAP
9 HAZİRAN 2011, PERŞEMBE


jQuery BBQ10 ** fonksiyon kullan bence. İyi test edilmiş ve belgelenmiştir.

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Dan Gately

    Dan Gately

    13 AĞUSTOS 2006
  • MrExcite96

    MrExcite96

    17 ŞUBAT 2011
  • Qmusic Romania

    Qmusic Roman

    8 Temmuz 2011