Fork me on github
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 20 下一页
摘要: 阅读全文
posted @ 2015-10-09 17:27 Champion-水龙果 阅读(894) 评论(0) 推荐(0) 编辑
摘要: thinkphp计划任务使用cronRun1、先不管是是否是独立分组,必须在你项目名下的Conf文件夹内创建2个文件一个是tages.php 一个是 crons.php。注意这两个文件名为thinkphp标准文件名,不可以改变tages.php内容是: array('CronRun'), // 定时... 阅读全文
posted @ 2015-10-09 13:15 Champion-水龙果 阅读(861) 评论(0) 推荐(0) 编辑
摘要: 做数据库查询的时候,比较经常用到这两个,总是查手册,记不住,现在把它总结下,希望以后用的时候不查手册了。不管是用select 查询数据集,还是用find 查询数据,常配合连贯操作where、field、order等一起使用。field():用于定义要查询的字段(支持字段排除)用法:field($fi... 阅读全文
posted @ 2015-10-08 15:27 Champion-水龙果 阅读(508) 评论(0) 推荐(0) 编辑
摘要: 以管理员登录为例来介绍下$this->ajaxReturn与模板页进行ajax交互使用方法首先看PHP控制器的处理,在application/Admin/Controller/LoginController.class.php控制器里加入登录验证方法//ajax检验管理员登录是否正确public f... 阅读全文
posted @ 2015-10-08 14:48 Champion-水龙果 阅读(780) 评论(0) 推荐(0) 编辑
摘要: ThinkPHP的连贯操作方法中field方法有很多的使用技巧,field方法主要目的是标识要返回或者操作的字段,下面详细道来。1、用于查询在查询操作中field方法是使用最频繁的。$Model->field('id,title,content')->select(); 这里使用field方法指定了... 阅读全文
posted @ 2015-10-08 14:29 Champion-水龙果 阅读(909) 评论(0) 推荐(0) 编辑
摘要: jquery获取和设置元素高度宽度1.height()/ width()取得第一个匹配元素当前计算的高度/宽度值(px)height(val)/ width(val) 为每个匹配的元素设置CSS高度(hidth)属性的值$("#mydiv").height(); $("#mydiv").heigh... 阅读全文
posted @ 2015-10-08 10:49 Champion-水龙果 阅读(13551) 评论(0) 推荐(1) 编辑
摘要: //标签的属性称作元素属性,在JS里对应的DOM对象的对应属性叫DOM属性。JS里的DOM属性名有时和原元素属性名不同。 //==================================操作元素属性================================== //返回元素指定属性值 阅读全文
posted @ 2015-09-30 10:45 Champion-水龙果 阅读(392) 评论(0) 推荐(0) 编辑
摘要: /*判断当前设备是平板、安卓、苹果设备*/ <script type="text/javascript"> function fBrowserRedirect(){ var sUserAgent = navigator.userAgent.toLowerCase(); alert(sUserAgen 阅读全文
posted @ 2015-09-29 14:16 Champion-水龙果 阅读(636) 评论(0) 推荐(0) 编辑
摘要: 通过微信公众平台后台进行推送的,进去以后,你会发现对应的公众号昵称处是可点击的,并且能直接打开公众号的资料页HTML代码: 关注我们 Javascript代码: function viewProfile(){ if (typeof WeixinJSBridge != "u... 阅读全文
posted @ 2015-09-29 11:00 Champion-水龙果 阅读(1448) 评论(0) 推荐(0) 编辑
摘要: 1.renren.phpclient_id=$client_id; $this->client_secret=$client_secret; $this->access_token=$access_token; } function login_url($c... 阅读全文
posted @ 2015-09-28 15:59 Champion-水龙果 阅读(1239) 评论(0) 推荐(0) 编辑
摘要: 1.tqq.phpclient_id=$client_id; $this->client_secret=$client_secret; $this->access_token=$access_token; $this->openid=$openid; ... 阅读全文
posted @ 2015-09-28 15:52 Champion-水龙果 阅读(1029) 评论(0) 推荐(0) 编辑
摘要: 1.qq.phpappid=$appid; $this->appkey=$appkey; $this->access_token=$access_token; } function login_url($callback_url, $scope=''){ ... 阅读全文
posted @ 2015-09-28 15:49 Champion-水龙果 阅读(739) 评论(0) 推荐(0) 编辑
摘要: 1.sina.phpclient_id=$client_id; $this->client_secret=$client_secret; $this->access_token=$access_token; } function login_url($cal... 阅读全文
posted @ 2015-09-28 15:45 Champion-水龙果 阅读(1375) 评论(0) 推荐(0) 编辑
摘要: 1.kaixin.phpclient_id=$client_id; $this->client_secret=$client_secret; $this->access_token=$access_token; } function login_url($c... 阅读全文
posted @ 2015-09-28 15:42 Champion-水龙果 阅读(1807) 评论(0) 推荐(0) 编辑
摘要: 1.douban.phpclient_id=$client_id; $this->client_secret=$client_secret; $this->access_token=$access_token; } function login_url($c... 阅读全文
posted @ 2015-09-28 14:41 Champion-水龙果 阅读(1188) 评论(0) 推荐(0) 编辑
摘要: 屏幕旋转的事件和样式事件window.orientation,取值:正负90表示横屏模式、0和180表现为竖屏模式; window.onorientationchange = function(){ switch(window.orientation){ case -90: ... 阅读全文
posted @ 2015-09-28 10:47 Champion-水龙果 阅读(512) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.o 阅读全文
posted @ 2015-09-28 10:17 Champion-水龙果 阅读(4654) 评论(0) 推荐(0) 编辑
摘要: 0.101s // [1] => 20801.063kb // [2] => 91326.813kb // [optimization] // [0] => 0.086s // [1] => 20800.875kb ... 阅读全文
posted @ 2015-09-25 15:55 Champion-水龙果 阅读(257) 评论(0) 推荐(0) 编辑
摘要: index.php文件1,通过获取当前IP地址,2,调用新浪AIP,获取到当前城市。3,将中文转换为拼音后跳转。Pinyin("$currentCityName",'UTF8'); //城市拼音多音字 switch($currentCityEName) { ... 阅读全文
posted @ 2015-09-25 15:42 Champion-水龙果 阅读(4508) 评论(0) 推荐(0) 编辑
摘要: starTime=$this->getMicTime(); } public function stop(){ $this->stopTime=$this->getMicTime(); } public function spent(){ return round($this->stopTi... 阅读全文
posted @ 2015-09-25 15:25 Champion-水龙果 阅读(266) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 20 下一页
Champion-水龙果