jquery json用法
<script type='text/javascript' src='jquery.js'></script>
<script type='text/javascript'>
$(document).ready(function(){
$.getJSON("xxxx.php", function(data){
$('#showname').html(data.showname);
$('#showdj').html(data.showdj);
$('#showtime').html(data.showtime);
});
});
</script>
json格式:
{ "showtime":"06:00~06:30","showname":"早安日語","showdj":"孫寅華" }


0 Responses to "jquery json用法"
留下您的意見: