PHP中JSON的应用
来源:互联网 发布:淘宝买家信用度查询 编辑:程序博客网 时间:2024/05/21 03:24
主调文件index.html
<script type="text/javascript"> function getProfile(str) { var arr = str; document.getElementById('nick').innerHTML = arr.nick; } </script> <body><div id="nick"></div></body> <script type="text/javascript" src="http://www.openphp.cn/demo/profile.php"></script>
被调文件profile.php
<?php $arr = array( 'name' => '陈毅鑫', 'nick' => '深空', 'contact' => array( 'email' => 'shenkong at qq dot com', 'website' => 'http://www.chinaz.com', ) ); $json_string = json_encode($arr); echo "getProfile($json_string)"; ?>
0 0
- PHP中JSON的应用
- PHP中JSON的应用
- PHP中JSON的应用
- PHP中JSON的应用
- PHP中JSON的应用
- PHP中JSON的应用
- PHP中JSON的应用
- PHP中JSON的应用
- PHP中JSON的应用
- PHP中JSON的应用
- PHP中JSON的应用
- PHP中JSON应用
- [zt]PHP中JSON的应用
- 怎么在PHP中JSON的应用
- WCF中JSON的应用
- action中json的应用
- PHP中$$的应用
- php中关于json的使用
- 使用SQLite数据库的操作
- VC字符串转换成十六进制函数StrToIntEx(转)
- 使用SharedPreference写入数据
- 网络流量控制--DUMMYNET
- HTC One V T320e如何从第三方ROM刷回官方RUU详细教程
- PHP中JSON的应用
- android viewpager
- Android监听来电和去电
- 微软表示:wp os兼容范围更广,并向下兼容
- STL 排序(Sort)
- MySQL的基本命令
- 全自动过滤器高效解决水污染问题
- QQ,MSN,skype,goolge TALK,雅虎通,贸易通,淘宝旺旺在线客服代码
- mybatis 从入门到精通(四)