javascript印刷出力Jsonの例
791 ワード
,it , ,android ,
Click me!
<br>function handler(event) {
<br> var s="";
<br> s=s+"{";
<br> for(var i in event.data){
<br> s = s + i + ":" + event.data[i] + ",";
<br> }
<br> s = s.substring(0,s.length-1);
<br> s = s+"}";
<br> alert(s);
<br>}
<br>$("p").bind("click", {foo: "bar",f:"two"}, handler)
<br>