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

  • HTC

    HTC

    12 Ocak 2006
  • Huot Media

    Huot Media

    7 Mayıs 2010
  • MagmaRhino

    MagmaRhino

    16 Temmuz 2011