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

  • Jose LviS el Bambino ( JLB )   LviSito

    Jose LviS el

    3 ŞUBAT 2008
  • 365multimedia

    365multimedi

    26 ŞUBAT 2009
  • LiteralMSPaint

    LiteralMSPai

    27 EKİM 2010