<!DOCTYPE html> <html> <head> < http-equiv="Content-Type" content="text/html; charset=utf-8"/> < >My Test JQuery</ > < type="text/ " src="./js/jquery-1.10.2.min.js"></ > < type="text/ " > $(function(){ personObj=new (); personObj.name="xiaohuzi"; personObj.age=26; personObj.web="xiaohuzi.test.com"; //语法格式:$.param( ,trad) // : 必需参数。规定要序列化的数组或对象。 //trad: 可选参数。布尔值,指定是否使用参数序列化的传统样式。 $("#btn_ajax").click(function(){ $("#myDiv1").text($.param(personObj)); }); }); </ > </head> <body> <button type="button" id="btn_ajax">ajax</button> <div id="myDiv1" style="height:30px;padding: 10px;border:2px solid blue;"> </div> </body> </html>
继续阅读与本文标签相同的文章
上一篇 :
Waymo无人驾驶汽车开进亚特兰大
下一篇 :
jquery $.post() 使用实例
-
业务系统同城双区部署方案
2026-05-19栏目: 教程
-
RDS_DRDS数据库分配原则
2026-05-19栏目: 教程
-
《21天学通Python(第2版)》| 每日读本书
2026-05-19栏目: 教程
-
ConcurrentHashMap比其他并发集合的安全效率要高一些?
2026-05-19栏目: 教程
-
不写代码也能玩转AI,uber最新开源项目了解一下?
2026-05-19栏目: 教程
