摘要:
在我们使用查询语句的时候,经常要返回前几条或者中间某几行数据,这个时候怎么办呢?不用担心,mysql已经为我们提供了这样一个功能。 SELECT * FROM table LIMIT [offset,] rows | rows OFFSET offset LIMIT 子句可以被用于强制 SELECT 阅读全文
2017年3月2日
摘要:
arr = str.split('=');//分割字符串 $().each() 对于这个方法,在dom处理上用的比较多,如果一个html页面上面有多个checkbox,这时用$().each来处理checkbox是比较不错的; $.each()方法 1. 该方法处理一维数组,代码如下: 结果是输出 阅读全文
摘要:
Jquery实现Ajax异步提交时报错"Uncaught TypeError: Illegal invocation",如下图: 排查发现错误在于此: 复制代码代码如下: data:{"search_value":$('input[name=search_value]'),"order_source 阅读全文
2017年2月28日
摘要:
<?phpheader("Content-Type: text/html; charset=UTF-8");$arr=array('春','夏','秋','冬');//1 数组遍历的常规方法 // 该方法只能对索引数组(下标为数字的)好使,对于关联数字(字符串下标)不能用echo '一:<h2>PH 阅读全文
摘要:
http://files.cnblogs.com/lh460795/cQRCode.zip 用法: require 'cQRCode.php'; $qr = new cQRCode($node_url, ECL_H); $qr->getQRImg()->save($qrimage_path, 90) 阅读全文
摘要:
<?php session_start(); //登录验证码function GetVerify($length) { $strings = Array('3','4','5','6','7','a','b','c','d','e','f','h','i','j','k','m','n','p',' 阅读全文
摘要:
public function getipinfo($ip) { $res = '其他'; $url = "http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js&ip=".$ip; $ch = curl_init(); $SSL = 阅读全文
2015年7月18日
摘要:
1访问元素(属性,内容,值,css) 1元素属性(获取,设置,删除) .attr(name) .attr(key, value) || .attr({key0:value0, key1:value1,...}) || .attr(key, function(index){return ;}... 阅读全文