JAVASCRIPT
文章平均质量分 67
1120709211
这个作者很懒,什么都没留下…
展开
-
ajax返回json类型的数据,用js处理json类型的数据
index_do.php <?php header("Content-Type:text/html;charset=utf-8"); header("Cache-Control:no-cache"); $username=$_POST['username']; $info=""; if ($username=='admin'){ $info='{"name":"owen","age原创 2013-06-28 20:10:49 · 711 阅读 · 0 评论 -
php解析xml
index.php ajax function $(id){ return document.getElementById(id); } function checkName(){ var http_request=createAjax(); http_request.onreadystatechange=function(){ if(http_reques原创 2013-06-28 20:40:52 · 429 阅读 · 0 评论 -
PHP+AJAX无刷新返回天气预报
用php来写一个天气预报的模块 天气数据是通过采集中国气象网站的。本来中国天气网站也给出了数据的API接口。以下是API的地址。返回的数据格式为json格式。 1. http://www.weather.com.cn/data/sk/101010100.html 2. http://www.weather.com.cn/data/cityinfo/101010100.html 3.原创 2013-07-30 20:05:49 · 660 阅读 · 0 评论