functionlogging()
{var x = new XMLHttpRequest();
x.onreadystatechange =function()
{if(x.readyState == 4) {
if(x.status == 200) {
console.log("The server replied with: " + x.responseText);
txt.text = x.responseText;
}
}
};
var xxx = newObject;
xxx.id=289672082;
xxx.pwd = '12345';
var pcode= JSON.stringify(xxx);
x.open("GET","http://localhost/mycode/Test/index.php?code="+pcode);
x.send(null);
}解析
10分钟内自己学会PHP其中,第1篇为入门篇,主要包括了解PHP、PHP开发环境搭建、PHP开发基础、PHP流程控制语句、函数、字符串操作、正则表达式、PHP数组、PHP与Web页面交互、日期和时间等内容;第2篇为提高篇,主要包括MySQL数据库设计、PHP操作MySQL数据库、Cookie和Session、图形图像处理技术、文件和目录处理技术、面向对象、PDO数据库抽象层、程序调试与错误处理、A
$pcode = $_GET['code']; $obj = json_decode($pcode); echo$obj->id . "," . $obj->pwd;
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });
以上就介绍了 php入门4 解析json对象,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。










