大飞_dafei

导航

上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 49 下一页

2020年10月14日 #

laravel model 层

摘要: model层中 created_at ,updated_at $timestamp=false; 官方地址 其他参考地址 2) model 层中指定场景使用rule; rules 3) model 层中添加额外字段 $appends : 场景再现, 数据库中有 id,name;但是没有性别, 使用模 阅读全文

posted @ 2020-10-14 09:08 大飞_dafei 阅读(264) 评论(0) 推荐(0) 编辑

laravel 博客收藏,转载篇

摘要: laravel接收get传值和接收post传值 20 个 Laravel Eloquent 必备的实用技巧 表单验证 Laravel设置软删除及其恢复系列操作 Laravel 模型使用软删除-左连接查询-表起别名 setTable('别名') 2) 软删除[whereNull ] : DB::tab 阅读全文

posted @ 2020-10-14 09:07 大飞_dafei 阅读(121) 评论(0) 推荐(0) 编辑

laravel 用法大全开始

摘要: laravel 官网 laravel 学院 laravel-china 中文官网 composer 安装laravel并换镜像 https://packagist.laravel-china.org 为什么我不太想用 Laravel ? 主要看 Eloquent# 介绍 通过 Model 查询数据时 阅读全文

posted @ 2020-10-14 09:05 大飞_dafei 阅读(98) 评论(0) 推荐(0) 编辑

2020年9月28日 #

ant-design-vue 之简单表格自定义表头和内容

摘要: ant-design-vue 之简单表格自定义表头和内容 使用到的API slots: { title: 'customnName' } 和 scopedSlots: { customRender: 'customAge' } <template> <div> <a-table bordered : 阅读全文

posted @ 2020-09-28 16:21 大飞_dafei 阅读(16963) 评论(0) 推荐(1) 编辑

2020年9月27日 #

Vue 点击元素变色

摘要: Vue 点击元素变色 <style> .activeClass{ outline: 2px solid #c0c0c0; background-color: #c0c0c0; } </style> <div id="app"> <ul> <li v-for="(item,index) in clas 阅读全文

posted @ 2020-09-27 20:10 大飞_dafei 阅读(1523) 评论(0) 推荐(0) 编辑

2020年9月24日 #

ant-design-vue 之form表单选中select使用

摘要: ant-design-vue 之form表单选中select使用 01) 一般select @change="handleChangeFei" 可以获取key 和 val (默认有2个参数) handleChangeFei(value,option) { console.log(value, opt 阅读全文

posted @ 2020-09-24 15:41 大飞_dafei 阅读(5492) 评论(0) 推荐(0) 编辑

JavaScript 中放大缩小transform: scale(1);

摘要: JavaScript 中放大缩小transform: scale(1); 被scale放大的元素,看起来很大,但是实际占据的位置还是原来的大小 <style> .da-fei { width: 200px; height: 200px; background-color: #c0c0c0; outl 阅读全文

posted @ 2020-09-24 10:50 大飞_dafei 阅读(4583) 评论(0) 推荐(0) 编辑

JavaScript 中 onwheel 鼠标滚轮事件wheelDelta 和 deltaY

摘要: JavaScript 中 onwheel 鼠标滚轮事件wheelDelta 和 deltaY <style> .da-fei { width: 800px; height: 800px; background-color: #c0c0c0; } </style> <div class="da-fei 阅读全文

posted @ 2020-09-24 10:21 大飞_dafei 阅读(3035) 评论(0) 推荐(0) 编辑

JavaScript中event.offsetX 和 event.offsetY 获取鼠标点击的位置

摘要: JavaScript中event.offsetX 和 event.offsetY 鼠标指针相对于目标节点内边位置的X坐标,Y坐标 [鼠标点击的位置] <div class="wrapper"> <div class="content"> <button class="button" onclick= 阅读全文

posted @ 2020-09-24 09:42 大飞_dafei 阅读(764) 评论(0) 推荐(0) 编辑

2020年9月14日 #

Vue 中 实现一个简单的 echarts

摘要: vue 中 实现一个简单的 echarts 01) vue 中 实现一个简单的 echarts <template> <div> <div id="charts_1" style="width: 500px;height: 500px;"></div> </div> </template> <scr 阅读全文

posted @ 2020-09-14 09:41 大飞_dafei 阅读(317) 评论(0) 推荐(0) 编辑

上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 49 下一页