[pcsh lang="php" tab_size="4" message="" hl_lines="" provider="manual"]function arrayToObject($e){ if( gettype($e)!='array' ) return; foreach($e as $k=>$v){ if( gett...
[pcsh lang="php" tab_size="4" message="" hl_lines="" provider="manual"]function arrayToObject($e){ if( gettype($e)!='array' ) return; foreach($e as $k=>$v){ if( gett...
mkdir — 新建目录每次只能新建一层
thinkphp5常量原文地址http://www.kancloud.cn/manual/thinkphp5/118137[pcsh lang="php" tab_size="4" message="" hl_lines="" provider="manual"]DS 当前系统的目录分隔符 THINK_PATH 框架系统目录 ROOT_PATH 框架应用根目录 APP_PATH 应用...
__APP__ 当前项目(入口文件)地址 __URL__ 当前模块的URL地址 参考文献http://www.thinkphp.cn/topic/6446.html
PNGGauntlet官方下载https://pnggauntlet.com/
1,调整img标签最好加个class好让lazyload插件找到这些需要lazyload的图片把src改为data-original以防止他自己加载改完后大致如下[pcsh lang="js" tab_size="4" message="" hl_lines="" provider="manual"]<img class="lazy" data-original=...
参考文献http://caibaojian.com/jquery-scrollto.html示例[pcsh lang="js" tab_size="4" message="" hl_lines="" provider="manual"]function goTop(ele, speed){ var ele = $('.search_input'); ...
基本注意应该先wx.configconfig之后会调用ready在里面写好要定制的内容特别注意如果微信登录和微信分享同时存在,微信分享通过js异步去签名,在第一次跳转后会又回到原来也没,很可能不再触发wx.ready事件,从而导致分享设置失败invalid signature前端传过来的url可能经过了encodeURIComponent,后端必须先要urldecode一下
参考文献http://www.thinkphp.cn/info/134.htmlR('User/detail',array('5'),'Api');注意第二个表示传递的参数这里要使用数组,并且只有数组第一个值有效