- 博客(8)
- 资源 (39)
- 收藏
- 关注
原创 php 简单过滤
<?php/** 数据入库之前格式化数据(防止 SQL 注入)*/function site_addslashes($string, $force = 0) { !defined('MAGIC_QUOTES_GPC') && define('MAGIC_QUOTES_GPC', get_magic_quotes_gpc()); if(!MAGIC_QUOTES_GPC || $for
2015-01-27 11:00:41 1105
转载 jQuery Ajax 简单的实现跨域请求
html 代码清单:服务端 validate.php 代码清单: $_GET['loginuser'],"pass" => $_GET['loginpass'],"name" => 'response');echo $_GET['jsoncallback'] . "(".json_encode($arr).")";效果图:
2015-01-27 10:45:38 1008
原创 微信图片上传到服务器
$pic_img=trim( $postObj->PicUrl); if($type=="image"){ $pic_url=save_file_to_sever($pic_img,$fromUsername); } function GetRootPath(){ $sRealPath = realpath('./'); $sSelfPath = $_SER
2015-01-22 14:11:44 1714
原创 html5 摇一摇
摇一摇功能 body{background:#000;} .hand { width: 190px; height: 300px; background: url(http://www.w3cfuns.com/data/attachment/album/201501/08/105656rplil892bx2l33r9.png) no-repeat; margin:
2015-01-19 16:03:24 1095
原创 HTML5全屏
测试全屏 function launchFullScreen(element) { if(element.requestFullScreen) { element.requestFullScreen(); } else if(element.mozRequestFullScreen) { element
2015-01-19 15:58:47 1053
原创 Html 5 小惊喜
var canvas=document.getElementById('canvas'); var context=canvas.getContext('2d'); var width=canvas.width; var height=canvas.height; window.onload= function () {
2015-01-19 15:54:37 1450
原创 php百度天气
<?php//获取在百度里面搜索 xx(地名)天气 抓取的天气信息$url = "http://www.baidu.com/s?wd=%B1%B1%BE%A9%CC%EC%C6%F8"; //此为在百度里搜 北京天气 的返回地址$content = file_get_contents($url);preg_match_all('/(.+?)/si',$content,$temp);pre
2015-01-19 09:08:47 1151
原创 php 提取数组中重复的数据
提取数组中的重复数据function FetchRepeatMemberInArray($array){ // 获取去掉重复数据的数组 $unique_arr = array_unique ( $array ); // 获取重复数据的数组 $repeat_arr = array_diff_assoc ( $array, $unique_arr ); return $repe
2015-01-16 12:29:07 3955
JSONLibraries1.zip
2013-05-13
spring-framework & commons-logging
2013-12-07
jquery.validate.js
2013-12-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人