上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 41 下一页
摘要: 控制器里生成地址 $this->generateUrl('course_manage_show_test', array('id' => 1)) twig前端文件生成地址: {{ path('course_manage_show_test',{id:1}) }} 阅读全文
posted @ 2021-02-19 15:39 study_php_java_C++ 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 使用阿里云CDN后,php使用$_SERVER['HTTP_VIA']判断是否是移动端会出错 if (isset ($_SERVER['HTTP_VIA'])) return stristr($_SERVER['HTTP_VIA'], 'wap') ? true : false; 上面是之前代码,不 阅读全文
posted @ 2021-02-18 11:04 study_php_java_C++ 阅读(668) 评论(0) 推荐(0) 编辑
摘要: 安装vscode 编辑器后,找到插件 1.安装Debugger for Chrome 2.找到本地需要启动的项目,配置文件,从左到右依次点击红圈中的按钮,然后出现launch.json文件,在里面添加配置信息 最后一条file参数是需要自己加的:"file":"${workspaceRoot}/se 阅读全文
posted @ 2021-02-07 13:02 study_php_java_C++ 阅读(983) 评论(0) 推荐(0) 编辑
摘要: (function(){ var fnUrlReplace = function (eleLink) { if (!eleLink) { return; } var href = eleLink.href; if (href && /^#|javasc/.test(href) false) { if 阅读全文
posted @ 2021-01-21 10:01 study_php_java_C++ 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 1、问题重现 使用单例模式访问类方法,PhpStorm提示类方法Cannot find declaration to go to 2、解决方法 加一句代码注释 注意:注释不能省略变量名 注:成员变量实例化对象也是类似 阅读全文
posted @ 2021-01-14 10:29 study_php_java_C++ 阅读(1559) 评论(0) 推荐(0) 编辑
摘要: 用于背景颜色渐变或画线条等场景 linear-gradient() 函数用于创建一个表示两种或多种颜色线性渐变的图片。 创建一个线性渐变,需要指定两种颜色,还可以实现不同方向(指定为一个角度)的渐变效果,如果不指定方向,默认从下到上渐变。 /* 从上到下,蓝色渐变到红色 */ linear-grad 阅读全文
posted @ 2021-01-12 16:13 study_php_java_C++ 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 根据网友的设计进行了部分调整: 用户分为管理员admin表和用户user表 记录操作表数据 增删改: insert/delete/update <?php /** * OperateLog.php * description */ namespace app\service; use think\D 阅读全文
posted @ 2020-12-25 15:21 study_php_java_C++ 阅读(991) 评论(0) 推荐(0) 编辑
摘要: {*<div class="col-sm-10">*} phpstorm注释tpl文件代码为上面,但是这个不符合本框架的注释方式,会报错,需要调整为: <!-- <div class="col-sm-10"> --> 方式:打开setting之后,在IDE Setting中的File Types(也 阅读全文
posted @ 2020-12-22 14:49 study_php_java_C++ 阅读(624) 评论(0) 推荐(0) 编辑
摘要: 用到了 order by if 和 count 使用的是TP5.0 $sql = Db::name('teacher') ->alias('t') ->join('user u', 'u.user_id = t.user_id') ->join('tiwen tw', 'tw.teacher_use 阅读全文
posted @ 2020-12-15 12:00 study_php_java_C++ 阅读(507) 评论(0) 推荐(0) 编辑
摘要: 这是七牛技术给的demo <?php require_once __DIR__ . '/../autoload.php'; use \Qiniu\Auth; use Qiniu\Http\Client; $accessKey = 'xxxx'; $secretKey = 'xxxx'; $auth 阅读全文
posted @ 2020-12-08 21:32 study_php_java_C++ 阅读(506) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 41 下一页