开发工具
开发手册
千图首页
登录
注册
开发手册
HTML
CSS
JavaScript
编辑您的代码:
<html> <head> <script type="text/javascript" src="/jquery/jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ personObj=new Object(); personObj.firstname="Bill"; personObj.lastname="Gates"; personObj.age=60; personObj.eyecolor="blue"; $("button").click(function(){ $("div").text($.param(personObj)); }); }); </script> </head> <body> <button>序列化对象</button> <div></div> </body> </html>
查看结果:
关于千图
|
赞助千图
|
千图首页
Copyright2014千图网 沪ICP备10011451号-6 用时:0.0069秒
千图网提示
登录以后可以免费试用
登录
或
注册