legend3---7、videojs的使用配置的启示是什么
一、总结
一句话总结:
很多东西网上都有现成的,直接拿来用就好,效果是又快又好
1、用auth认证登录的时候报 "validateCredentials() must be an instance"错误?
|||-begin
Argument 1 passed to IlluminateAuthEloquentUserProvider::validateCredentials() must be an instance of IlluminateContractsAuthAuthenticatable, instance of AppModelHomeUser given, called in /home/vagrant/legend3/vendor/laravel/framework/src/Illuminate/Auth/SessionGuard.php on line 377
|||-end
是因为auth认证的时候忘记去给模型继承IlluminateFoundationAuthUser类了
use IlluminateFoundationAuthUser as Authenticatable; class User extends Authenticatable
2、如何获取屏幕的宽高?
直接可以通过windows对象获取宽高,比如$(window).width()
{{--小屏幕端的时候去除 内容中container 的左右缩进--}} function remove_container() { if($(window).width()>720){ $('#content_container').addClass('container'); } $('#content_wrapper').show(); } remove_container();
3、HTTP请求中的TTFB是什么?
TTFB (Time To First Byte),是最初的网络请求被发起到从服务器接收到第一个字节这段时间,它包含了 TCP连接时间,发送HTTP请求时间和获得响应消息第一个字节的时间。
4、lavarel中获取某个字段的数据?
select方法:$lesson_tags=TagAndLesson::where('tl_l_id',$id)->select('tl_t_id')->get();
5、lavarel中写php原生代码?
@php @endphp
6、设置的样式不起效果多加!important?
cursor: pointer !important;
.choose_tag_a:hover{ cursor: pointer !important; color: red !important; }
7、glyphicon图标和字不能对齐怎么办?
glyphicon和字放到h4里面能对齐
1 <div class="panel-heading lesson_panel_heading"> 2 <h4 style="font-size: 14px;margin: 0;"> 3 <span class="glyphicon glyphicon-align-center" style="float: left;height:19px;19px;color:#FFA955;margin-right: 5px;"></span> 4 第一章:抓包工具详解 5 </h4> 6 </div>
8、页面端想做手机和电脑都适配,但是有些电脑端样式不适合手机端怎么办?
同一页面样式不好控制的位置可以做两套,电脑端的样式显示电脑端,手机端的样式显示手机端
9、系统的数据表如何设计?
找到多个功能相似的网站或者app,浏览它们的每个页面,分析出他们所需要的数据表和数据字段
10、数据库分表的特点?
按功能拆分,比如会员功能就可以从用户表中拆分出来,变成用户会员表
二、内容在总结中
3、