- 博客(20)
- 资源 (7)
- 收藏
- 关注
原创 iview select多选远程搜索,不清空关键字
<template> <Row> <Col span="12"> <Select ref="selectName" v-model="model14" multiple filterable remote :remote-method="remoteMethod2" :loading="loading2" @on-change="onChange" @on-query-change="handleSelectChange"> <O.
2022-04-13 10:37:11
1283
原创 element-ui的form表单validateField部分校验问题
使用element-ui的form表单validateField部分校验问题<el-form :model="ruleForm" :rules="rules" ref="ruleForm"> <el-form-item label="验证码" prop="code"> <el-input v-model="form.code" placeholder="请输入验证码" maxlength="6"></el-input> </el-form.
2021-04-22 17:40:49
2742
原创 el-table-column使用fixed错位问题
参考网上很多方法都没解决,使用doLayout()或者是设置:key都没用最后修改样式.el-table.cell{line-height:unset;}希望官方可以修复这个bug
2020-12-25 14:40:23
1066
1
原创 antdv Modal 对话框 取消确认icon使用vnode问题
之前没用这套UI,今天踩坑记录一下。Modal 对话框这样就可以修改默认图标,但是需求图标要是实心的, confirm() { this.$confirm({ title: 'Confirm', content: '确认内容', okText: '确认', cancelText: '取消', icon:'info-circle' }); },icon 自定义图标(1.
2020-09-03 18:10:17
6629
2
原创 yii2 yii\web\HeadersAlreadySentException报错
An Error occurred while handling another error:exception 'yii\web\HeadersAlreadySentException' with message 'Headers already sent in /xxxxx/controllers/xxxController.php on line 245.' in /xxxxx/vendo...
2018-04-18 17:33:47
3297
原创 yii2 leftjoin问题
$query = static::find()->select(['u.*','resume.*']);$query->leftJoin('user u', 'u.id=resume.user_id'); $data = $query->all(); var_dump($data);die;如果不加->asArray()获取不到联表数据,须加上 $data = $query...
2018-04-12 10:23:34
2566
原创 yii2 HeadersAlreadySentException 报错
An Error occurred while handling another error:exception 'yii\web\HeadersAlreadySentException' with message 'Headers already sent in /xxxx/xxxx/xxx.php on line 90.' in /xxxx/xxxx/vendor/yiisoft/yii2/w...
2018-04-03 10:06:48
9026
原创 yii2 rest api 请求报错
Fatal error: Uncaught exception 'yii\base\InvalidArgumentException' with message 'Response content must not be an array.' in /Applications/MAMP/htdocs/yii2/wugongzu/vendor/yiisoft/yii2/web/Response.ph...
2018-03-30 15:45:06
2051
原创 Yii2 rest 联表数据查询
在model里写public function fields() { return [ 'id', 'company_id', 'type_id', 'company'=>function () { return Company::fin...
2018-03-24 16:04:11
948
原创 Windows安装 PHP intl扩展库
php ext默认是有php_intl.dll查看文件夹里是否存在这些,如果没有的话去下载一个php对应版本,把里面的文件拷贝进去http://windows.php.net/download/
2017-09-11 16:29:31
3056
原创 换算距离单位
public static function getSizeLength($size) { $str = ''; $units = ['m','km'];//单位字符,可类推添加更多字符. if (!empty($size) && is_numeric($size)) { foreach($u
2017-09-05 18:10:00
2076
原创 YII2 自定义log文件
use yii\log\FileTarget; //引入类messages 里面的参数说明[[ 0 ] = > 消息[ 1 ] = > 等级 (1是 LEVEL_ERROR, 2是LEVEL_WARNING,4是LEVEL_INFO,8是LEVEL_TRACE,64是LEVEL_PROFILE,80是LEVEL_PROFILE_BEGIN,96是LEVEL_PROFILE
2017-07-21 11:54:18
1529
原创 yii2 phpexecl导入
composer requirephpoffice/phpexcel:"*"public function actionImport() { $model = new Quenstion(); $ok = ""; if ($model->load(Yii::$app->request->post())) {
2016-12-02 10:15:35
4763
原创 YII2
Yii2中的表之间的关联有2种,它们用来指定两个模型之间的关联。一对多:hasMany 所关联的模型的类名称。一对一:hasOne 是一个数组,其中键为所关联的模型中的属性,值为当前模型中的属性
2016-02-22 17:26:29
335
转载 mongodb的基本配置
基本配置----------------------------------------------------------------------------------quiet# 安静输出--port arg# 指定服务端口号,默认端口27017--bind_ip arg# 绑定服务IP,若绑
2016-01-08 10:11:57
283
原创 nodejs安装supervisor
使用npm安装supervisorwindows环境下:1、进入命令行2、通过命令行进入安装的node目录3、npm -g install supervisormac环境下:进入Terminal输入sudo npm -g install supervisor安装成功后
2016-01-06 10:03:26
590
原创 mac 安装node问题
通过brew安装,安装brew看官网http://brew.shbrew install node ,安装完后,输入node -v看是否有版本号如果没有继续执行安装命令如果是以前安装了的,卸载了,现在又安装,执行node -v则报错但是去cd /usr/local/Cellar 里面看node是存在的那么就需要自己去 node/5.3.0/bin 目录里复制node文件到 /u
2015-12-22 15:04:24
372
原创 mac上安装sublime text3 package control问题
自动安装:使用Ctrl+`快捷键或者通过View->Show Console菜单打开命令行,粘贴如下代码:import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.ins
2015-12-19 14:19:03
480
Node.js开发实战详解
2016-01-25
node.js实战
2016-01-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人