摘要:
jquery each循环遍历完再执行的方法 因为each是异步的 所以要加计数器. var eachcount=0; <pre> $(".emptytip").each(function(){ eachcount++ console.log(eachcount); if(eachcount>=$( 阅读全文
摘要:
mysql找出重复数据的方法<pre>select openid,count(openid) from info group by openid,jichushezhi_id HAVING count(openid)>1</pre> 阅读全文
摘要:
PHP判断数组下标有没有存在的方法<pre>if(!empty($token['errcode'])){ print_r($token['errmsg']); exit();}</pre> 这样就不会报错了 阅读全文
摘要:
jquery each循环遍历完再执行的方法 因为each是异步的 所以要加计数器. var eachcount=0; <pre> $(".emptytip").each(function(){ eachcount++ console.log(eachcount); if(eachcount>=$( 阅读全文
摘要:
mysql General error: 1366 Incorrect string value: '\xF0\x9F\x91\x8D\xF0\x9F...' for column 'dianpumiaoshu' at row 1 解决方法 因为传入了emoji表情 曾经考虑过过滤 但是行不通 所以 阅读全文
摘要:
php swoole异步处理mysql <pre>//创建websocket服务器对象,监听0.0.0.0:9509端口//异步测试$ws = new swoole_websocket_server("0.0.0.0", 9600); $ws->set(array( 'worker_num' => 阅读全文
摘要:
jquery手指触摸滑动放大图片的方法(比较靠谱的方法) <pre><!DOCTYPE html><html lang="zh-cn"><head> <title>touch.js demo</title> <meta charset="utf-8" /> <meta name="viewport" 阅读全文
摘要:
PHP yaf显示错误提示 1就是配置文件的那个错误 <pre>error_reporting(E_ALL);</pre> 2init.php文件的<pre>function yofErrorHandler($errno, $errstr, $errfile, $errline, $sql = '' 阅读全文
摘要:
php Yaf_Loader::import引入文件报错的解决方法 改下配置文件就行<pre>yaf.use_spl_autoload=1</pre> 也可以PHP动态修改 毕竟打开影响性能<pre> ini_set('yaf.use_spl_autoload',0);</pre> 阅读全文
摘要:
PHP实现开发者模式出现该公众号提供的服务出现故障 请稍后再试解决方法 仔细检查下有没有echo等输出的代码 echo没有输出东西 就是报这个信息 所以调试信息都必须写入日记 阅读全文