12 2015 档案
摘要:1、配置文件config.php/**配置导航**/ 'ADMIN_NAV' => array( array('title'=>'用户信息','url'=>"?s=/Home/Index/index",'class'=>''), //array('title'=>'...
阅读全文
摘要:http://developer.baidu.com/map/jsdemo.htm#a1_5
阅读全文
摘要:setTimeout('location.reload()',1000);//页面刷新 1000为延时的毫秒数1.setInterval() - 间隔指定的毫秒数不停地执行指定的代码。2.setTimeout() - 暂停指定的毫秒数后执行指定的代码var setT = setTimeout(fu...
阅读全文
摘要:linux ubuntu14.x apache上在WxPayPubHelper.php里面 postXmlSSLCURL方法里//curl_setopt($ch,CURLOPT_SSLCERT, WxPayConf_pub::SSLCERT_PATH); curl_setopt($ch...
阅读全文
摘要:1、php页面为utf编码1 header("Content-type: text/html; charset=utf-8"); 用header或meta实现PHP页面编码的区别一、页面编码1. 使用 标签设置页面编码这个标签的作用是声明客户端的浏览器用什么字符集编码显示该页面,xxx可以为GB2...
阅读全文
摘要:1、过滤是不是URL(后台过滤)$url = "https://www.baidu.com"; if(!filter_var($url,FILTER_VALIDATE_URL)){ echo "不是URL地址"; }else{ echo "是URL地址"; ...
阅读全文
摘要:/*图片上传*/ public function upload(){ $file = $_FILES['mypic']; $upload = new \Think\Upload();// 实例化上传类 $upload->maxSize = 2*1024...
阅读全文
摘要://设置或获取对象指定的文件名或路径。alert(window.location.pathname) //设置或获取整个 URL 为字符串。 alert(window.location.href);//设置或获取与 URL 关联的端口号码。alert(window.location.port) //...
阅读全文
摘要:1、HTML部分搜索">搜索2、JS部分function funsearch(basePath){ var seaval = $("#search").val(); window.location.href=basePath+'/search/'+seaval+'.htm...
阅读全文
摘要://按回车登录 $(document).keyup(function(event){ if(event.keyCode ==13){ $("#loginbtn").trigger("click"); } });
阅读全文