jquery php ajax json
just get a json
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<mce:script src="jquery-1.3.2.min.js" mce_src="jquery-1.3.2.min.js" type="text/javascript"></mce:script>
</head>
<body>
<mce:script type="text/javascript"><!--
function getjson(){
$.getJSON('json.php',function(data){
var content="";
for(var i=0;i<data.length;i++){//Ñ»·¶ÁÈ¡ºǫ́µÄÈ¡µÃµÄJSONÊý¾Ý
content+=data[i].name;
var par="Åŵ²£º";
for(var j=0;j<data[i].par.length;j++){//Ñ»·¶ÁÈ¡Êý¾ÝÖеÄpar¼¯ºÏ
par+=data[i].par[j]+"¡¢";
}
content+=par+"<br/>";
}
//alert(content);
$('#jsondata').html(content);
}
);
}
// --></mce:script>
<a href="javascript:getjson();" mce_href="javascript:getjson();">getjson</a>
<div id="jsondata" style="color:red" mce_style="color:red"></div>
</body>
</html>
post a json and get a json
<mce:script type="text/javascript" language="javascript"><!--
function del(com_id,meet_id){
$.ajax({
url:'json.php',
type:'POST',
//data:'id='+id,
//dataType: 'html',
data:{com_id:com_id,meet_id:meet_id},
dataType:"json",
timeout: 1000,
error: function(){
alert('Sorry, the server is busy now.');
},
success: function(data){
if(data){
//
Ïà¹ØÎĵµ£º
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The follo ......
ÒÔǰһֱ¸ãC++½øÐÐC/S¿ª·¢£¬Ôø¾µÄÏë·¨ÊÇÈç¹ûÓлú»á£¬Ñ§Ñ§¸ãÍøÕ¾ºÍǶÈëʽ¿ª·¢
ûÏëµ½ÕÒµ½¹¤×÷µÄµÚ2Ìì¾ÍÓÐÁË×öÍøÕ¾µÄ»ú»á£¬Ò²×¬µ½ÁË×Ô¼º´óѧÆÚ¼ä×î¸ßµÄÒ»·Ý¹¤×Ê£¬10Ìì1000¿é
ÔÚʲôµÄ¶¼²»»áµÄÇé¿öÏ£¬¾¡È»´ðÓ¦ÈËÊ´¦µÄÀÏʦһ¸öÐÇÆÚдºÃÍøÕ¾µÄºǫ́
ÎÒ³ÐÈÏÕÒµ½¹¤×÷ºó×Ô¼ºÊÇÓеã¿ñÁË£¬ºÜ¶àÊÂûעÒâµ½£¬ºÜ¶àʺó»Ú²»ÁË¡£¡£¡£
......
Php Variable Circular References
Circular-references has been a long outstanding issue with PHP. They are
caused by the fact that PHP uses a reference counted memory allocation
mechanism for its internal variables. This causes problems for longer
running scripts (such as an Applicatio ......
ÕªÒª: ÓÃÕýÔòʵÏÖ°üº¬Ä³¸ö×Ö·û´®ºÜÈÝÒ×£¬µ«Èç¹ûʵÏÖ²»°üº¬Ä³¸ö×Ö·û´®ÄØ£¿×÷Õ߸ø³öÁËÒ»¸ö½â¾ö·½°¸¡£
ÅжÏÒ»¸ö×Ö·û´®ÖÐÊÇ·ñº¬ÓÐÁíÒ»×Ö·û´®£¬phpÓкܶ෽·¨£¬ÈçÏ£º
1. ³£¼ûº¯Êý
strstr($str, "abc");
strstr($str, "abc");
2. ÕýÔòÆ¥Åä
preg_match("/(abc)/is", $str);
p ......
Ò»¸öajaxÇëÇóÒ»¸öjspÎļþ£¬²Ù×÷³É¹¦,jspÎļþout.println("1");µ«ÊÇÿ´Î³É¹¦ºóxmlHttp.responseText=='1'×ÜÊÇΪfalse£¬
ÓÃencodeURIComponent¿´xmlHttp.responseText£¬·¢ÏÖ×îºó¶àÁË%0A%0D£¬°Ù¶ÈһϠÓÃÀ´ÊÇ»»ÐУ¬
jspÎļþÖеÄout.println……°ÑlnÈ¥µôÔÙ´Î±È½Ï ³É¹¦ = =¡ ......