jQuery 1.4新特性 jQuery.param
正需要此功能,用于ajax参数传递,例子如下
<html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title></title> <script src="http://code.jquery.com/jquery-1.4.js"></script> </head> <body > <form id="form1" runat="server"> <div id="result"> </div> <script> var _paramete = { 'web': 'ajaxcn.net', 'type': 'IT','meta':'云飞扬ITblog'}//参数 var str = jQuery.param(_paramete); $("#result").html(str); </script> </form> </body> </html> |
原创文章转载请注明出处:云飞扬IT的blog





