摘要:
一.从后台传过来的json不做处理,前端result.name这样调用回乱码。应该使用urldecode将jsonencod转码注意json只接受utf-8编码的字符,所以json_encode()的参数必须是utf-8编码,否则会得到空字符或者null。后台:if(!empty($chatData)){ echo urldecode(json_encode($chatData));'中文字符串','value'=>'test');//echojson_encode($testJSON);foreach($testJSONas$key=&g 阅读全文
posted @ 2014-03-28 17:25
hlp鹏
阅读(2239)
评论(0)
推荐(1)
摘要:
原创://点击时开启提醒 $(".message_alert").toggle(function(){ $(".message_alert_tip").html("关闭提醒"); $(".message_alert").find("img").attr("src","public/images/bell_open.png") initNotificatoin(); //打开浏览器开启桌面提醒询问 },function(){ $(".message 阅读全文
posted @ 2014-03-28 13:58
hlp鹏
阅读(702)
评论(0)
推荐(0)
摘要:
${file.name } 阅读全文
posted @ 2014-03-28 13:49
hlp鹏
阅读(119)
评论(0)
推荐(0)

浙公网安备 33010602011771号