摘要:
niushop后台 设置 -缓存管理 数据缓存 : 在方法里面直接写 use think\facade\Cache; Cache::clear(); //清除缓存 数据表缓存 if (is_dir('runtime/schema')) { //清除缓存 rmdirs("schema"); } 在操作 阅读全文
摘要:
直接上代码 数组中: 值在前 。数组在后 if(in_array($sku_id,$attribute[0]['attr_value_list'])){ echo 'true'; } else{ echo 'false'; } 字符串中: 数组在前 值在后 if (strpos($attribute 阅读全文
摘要:
niushop接口都会 继承一个父类 BaseApi去验证。把接口后面加上 ?app_type=pc 即可; 阅读全文
摘要:
$filearr = explode("upload2/",$filess[$f]); //把字符串 $filess[$f] 'public/upload/company/upload2/123123.png' 切割成两个.即成为了一个数组 .,切割成为了 $filearr[0] == 'publi 阅读全文
摘要:
前端 <div class="layui-upload"> <button style="margin-left: 110px;" type="button" class="layui-btn layui-btn-normal" id="testList">选择文件</button> <div st 阅读全文
摘要:
use think\Facade\Db; use think\Db; 阅读全文
摘要:
style="border-radius:15px; position:fixed;z-index:9999;bottom:89%;right:68%;font-size: 17px;margin-top:50px;" 修改 bottom:89%;right:68%就是上下左右 阅读全文
摘要:
Chart.js修改Y轴版 地址:https://kodo.79524795.vip/js/Chart.js Chart.js原版:地址:https://www.html5tricks.com/demo/chartjs/Chart.js 用原版的话,我这代码你没法用 传的数据 格式在最后。 <!DO 阅读全文