上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页

2016年12月8日

js 对象类型 (对象的属性 ,对象的方法) this 关键字

摘要: $(function () { var observation = { init: function () { this.render();//断点:this bind :function() check_length: function () init: function () render: f 阅读全文

posted @ 2016-12-08 16:46 jiageng 阅读(1498) 评论(0) 推荐(0) 编辑

2016年11月10日

php app版本升级的思路

摘要: 用户端传递当前app的版本号,再根据机型和app_type ,查找数据库里的版本号 ,去比较 。。。 CREATE TABLE `common_versioninfo` ( `id` int(11) NOT NULL COMMENT '数据的id', `client_type` tinyint(4) 阅读全文

posted @ 2016-11-10 11:08 jiageng 阅读(1880) 评论(0) 推荐(1) 编辑

2016年11月7日

php 微信 自定义分享接口

摘要: <?php class JSSDK { private $appId; private $appSecret; public function __construct($appId, $appSecret) { $this->appId = $appId; $this->appSecret = $a 阅读全文

posted @ 2016-11-07 17:52 jiageng 阅读(2897) 评论(0) 推荐(0) 编辑

php 微信 统一下单 接口实例

摘要: <?phpclass wechatAppPay { //接口API URL前缀 const API_URL_PREFIX = 'https://api.mch.weixin.qq.com'; //下单地址URL const UNIFIEDORDER_URL = "/pay/unifiedorder" 阅读全文

posted @ 2016-11-07 17:02 jiageng 阅读(10573) 评论(6) 推荐(0) 编辑

2016年11月4日

php 分页类(3)

摘要: <?php class Page { private $total; //总记录 private $pagesize; //每页显示多少条 private $limit; //limit private $page; //当前页码 private $pagenum; //总页码 private $u 阅读全文

posted @ 2016-11-04 17:40 jiageng 阅读(204) 评论(0) 推荐(0) 编辑

php 分页类(2)

摘要: <?phpinclude("connection.php");$perNumber=10; //每页显示的记录数$page=$_GET['page']; //获得当前的页面值$count=mysql_query("select count(*) from user"); //获得记录总数$rs=my 阅读全文

posted @ 2016-11-04 16:23 jiageng 阅读(185) 评论(0) 推荐(0) 编辑

php 分页类(1)

摘要: inter.php <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title> 分页演示 </title> <link href="pager.css" type="text/css" re 阅读全文

posted @ 2016-11-04 16:01 jiageng 阅读(200) 评论(0) 推荐(0) 编辑

php fsockopen例子

摘要: <?php /* * 短信相关api */ class Webcall { protected $VCC_CODE; //api的账号 protected $password; //api的密码 protected $api_url; //api的地址 /* * 设置api相关参数 * */ pub 阅读全文

posted @ 2016-11-04 13:41 jiageng 阅读(254) 评论(0) 推荐(0) 编辑

php 验证类

摘要: <?php /** * 验证类 * * @lastmodify 2014-5-16 * @author jy625 */ class VerifyAction{ /** * 是否为空值 */ public static function isEmpty($str){ $str = trim($str 阅读全文

posted @ 2016-11-04 11:29 jiageng 阅读(269) 评论(0) 推荐(0) 编辑

php 生成json格式的数据

摘要: 放到引入的公共函数里边 if (!function_exists('format_json')) { /** * 格式化API输出的json * @param $return_code string 返回的状态码 * @param $data array 要返回的数据 * @param $error 阅读全文

posted @ 2016-11-04 11:02 jiageng 阅读(4393) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页

导航