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

  • FF Radio

    FF Radio

    16 Mayıs 2008
  • KRQE

    KRQE

    6 AĞUSTOS 2007
  • sghaff1

    sghaff1

    23 Mart 2009