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

  • GirlSanctuaryBlog

    GirlSanctuar

    28 Aralık 2011
  • ModNation Racers H.Q.

    ModNation Ra

    31 Ocak 2010
  • ŠĩŗĜŕôŵåɭȍҭҭ

    ŠĩŗĜŕô

    29 Kasım 2009