摘要:
常见class关键词 布局类:header, footer, container, main, content, aside, page, section 包裹类:wrap, inner 区块类:region, block, box 结构类:hd, bd, ft, top, bottom, left 阅读全文
摘要:
js get_wxml: function (className, callback) { wx.createSelectorQuery().selectAll(className).boundingClientRect(callback).exec() }, //获取节点信息 this.get_w 阅读全文
摘要:
利用模型实现 class Cate extends Model { protected $append = ['children']; public function getChildrenAttr($value,$data) { return Cate::where('fid',$data['id 阅读全文
摘要:
1.基本原理 在表单页面生成一个验证码图片,生成图片的同时,需要把该图片中的字符串放入session 在原页面定义一个文本域,用于输入验证码 在目标的Servlet中:获取session和表单页面的验证码 比较两个是否一致接受请求,且把session语中的验证码属性清楚 若不一致,则直接通过重定向的 阅读全文
摘要:
1. 开启debug 配置文件 config -> APP // 显示错误信息 'show_error_msg' => false, 我是修改的.env2.使用view需要安装扩展包composer require topthink/think-view3.多应用模式 composer requir 阅读全文
摘要:
1.修改root 的host 将localhost改为% # 切换数据库 use mysql; update mysql.user set host = '%' where user = 'root'; 2.配置安全组 开启3306端口 3.防火墙配置 # 检查状态 systemctl stauts 阅读全文
摘要:
一、 启动 1、使用 service 启动:service mysql start2、使用 mysqld 脚本启动:/etc/inint.d/mysql start3、使用 safe_mysqld 启动:safe_mysql&二、停止1、使用 service 启动:service mysql sto 阅读全文
摘要:
使用display: flex; justify-content: space-between; 在以后一行内容个数不够时会导致样式错乱 只需要添加 class名::after{ content:""; 添加子元素的宽 } 阅读全文
摘要:
1.spring各版本下载地址: https://repo.spring.io/release/org/springframework/spring/ https://repo.spring.io/libs-release-local/org/springframework/spring/2.tom 阅读全文
摘要:
在Eclipse 中使用c3p0数据库资源管理时: 1 private static DataSource dataSource = null; 2 3 static { 4 dataSource = new ComboPooledDataSource("mvcapp"); 5 } //""内的字符 阅读全文