复制代码 代码如下:
<!DOCTYPE html PUBliC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<script type="application/javascript" src="/UploadFiles/2021-04-02/jquery.js"><title>企业培训,it培训,数据库培训,android培训,嵌入式培训</title>
</head>
<body>
<p>Click me!</p>
</body>
</html>
<script language="javascript">
function handler(event) {
  var s="";
      s=s+"{";
  for(var i in event.data){
      s = s + i + ":" + event.data[i] + ",";
  }
  s = s.substring(0,s.length-1);
  s = s+"}";
  alert(s);
}
$("p").bind("click", {foo: "bar",f:"two"}, handler)
</script>
标签:
javascript,打印,json

免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
狼山资源网 Copyright www.pvsay.com

评论“javascript打印输出json实例”

暂无“javascript打印输出json实例”评论...