上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 58 下一页
摘要: 表名 manager 序号 字段 类型 说明 空 默认值 主健1 id int N N/A 是 2 username yarchar(20) 用户名 N 3 password varchar(255) 密码 N 4 gender enum([l,2,3J) 性别:1;男, 2:女,3=保密 N 男 阅读全文
posted @ 2022-02-12 23:55 学无边涯 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 需要使用三个数据表:users、roles 和 role_user。role_user 表命名是以相关联的两个模型数据表来依照字母顺序命名,并包含了 user_id 和 role_id 字段。 多对多关联通过编写一个在自身 Eloquent 类调用的 belongsToMany 的方法来定义。举个例 阅读全文
posted @ 2022-02-08 13:53 学无边涯 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 一个「一对多」关联用于定义单个模型拥有任意数量的其它关联模型。例如,一篇博客文章可能会有无限多个评论。就像其它的 Eloquent 关联一样,可以通过在 Eloquent 模型中写一个函数来定义一对多关联 <?php namespace App; use Illuminate\Database\El 阅读全文
posted @ 2022-02-08 13:50 学无边涯 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 举个例子,一个 User 模型会关联一个 Phone 模型 在 User 模型中写一个 phone 方法。且 phone 方法应该调用 hasOne 方法并返回其结果: <?php namespace App; use Illuminate\Database\Eloquent\Model; clas 阅读全文
posted @ 2022-02-08 13:47 学无边涯 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 1、引入WOW.js插件,搭配animated.css实现动画 <link rel="stylesheet" href="http://cdn.staticfile.org/animate.css/2.0/animate.min.css"><script src="http://cdn.static 阅读全文
posted @ 2022-02-06 14:35 学无边涯 阅读(131) 评论(0) 推荐(0) 编辑
摘要: <style>p:before{content:"www.96net.com.cn:";} p:after{content:"www.96net.com.cn:";}</style> <p>我是唐老鸭。</p><p>我住在 Duckburg。</p> <p><b>注释:</b>对于在 IE8 中工作 阅读全文
posted @ 2022-02-06 14:14 学无边涯 阅读(45) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html><head><style>p { font-size: 16px; line-height: 2em;} div { font-size: 30px; border: 1px solid black;} span { font-size: 0.5em;}</ 阅读全文
posted @ 2022-02-05 21:25 学无边涯 阅读(238) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style type="text/css"> .box{ position: relative; } .small{ position 阅读全文
posted @ 2022-02-05 15:58 学无边涯 阅读(274) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style> div{ background: #ff6666; min-width: 200px; /* max-width: 20 阅读全文
posted @ 2022-02-05 15:03 学无边涯 阅读(78) 评论(0) 推荐(0) 编辑
摘要: css3中height 超出继续显示 与max-height一样 <style> div{ background: #ff6666; width: 200px; max-height: 100px; }</style> <body> <div> 这个是经典的故事 这个是经典的故事 这个是经典的故事 阅读全文
posted @ 2022-02-05 14:57 学无边涯 阅读(120) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 58 下一页