- 博客(8)
- 资源 (1)
- 收藏
- 关注
转载 document.body.scrollTop用法
网页可见区域宽: document.body.clientWidth; 网页可见区域高: document.body.clientHeight; 网页可见区域宽: document.body.offsetWidth (包括边线的宽); 网页可见区域高: document.body.offsetHeight (包括边线的宽); 网页正文全文宽: document.body.scro
2015-09-02 18:14:21 201
转载 scrollLeft,scrollTop,滚动代码的总结
研究了一下横向和竖向图片滚动的代码 第一个: for(var i=1;i { document.getElementById("TextBox1").scrollTop++; document.getElementById("TextBox1").scrollLeft++; } 我刚开始的时候写成了 for(int
2015-09-02 18:11:24 329
翻译 PHP缓存函数apc
APC 函数 apc_add — 缓存一个变量到数据存储apc_bin_dump — Get a binary dump of the given files and user variablesapc_bin_dumpfile — Output a binary dump of cached files and user variables to a fileapc_bin_load
2015-09-01 18:20:35 244
原创 获取微信用户信息的一些常用方法
<?php /** * 通过$appid、$appsecret获得基础支持的接口唯一凭证access_token,返回值为array类型 */ function get_access_token_base($appid , $appsecret ) { $url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_cr
2015-09-01 18:13:58 672
原创 Ajax在PHP中的使用
前台: $(document).ready(function(){ $("sm").click(function(){ $.ajax({ type: "GET", url: "kan.inc.php", data: {openid:{$openid}, kanid:{$kanid}},
2015-09-01 18:05:55 363
转载 PHP获取时间的一些常用方法
/** * php 获取时间(今天,昨天,三天内,本周,上周,本月,三年内,半年内,一年内,三年内) * * author:ihelloworld2010@gmail.com * date:2012-06-28 16:00:01 */ $q = $_GET['q'] ? intval($_GET['q']) : 0; $text = ''; $now =
2015-08-03 13:25:09 296
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人