$(document).ready(function () { var map = [ {"name":"kitty", age:21}, {"name":'sony', age:22} ] var $div = "<div>" for (var i in map) { var $text = "<div>" $.each(map[i], function (key, value) { ... Read More
posted @ 2012-04-19 16:15 break_happy Views(213) Comments(0) Diggs(0) Edit
解决php页面的json数据中文乱码<?php $json = array ( 0 => array ( 'id' => '13', 'name' => '乒乓球', ), 1 => array ( 'id' => '17', 'name' => '篮球', ) ) ?> <?php $newData = array(); foreach( $json as $key => $value ) { $newDa Read More
posted @ 2012-04-19 14:12 break_happy Views(1442) Comments(0) Diggs(0) Edit
php header("content-type:text/html; charset=utf-8")html<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Read More
posted @ 2012-04-19 11:37 break_happy Views(125) Comments(0) Diggs(0) Edit