上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: 使用如下命令生成go文件 protoc --go_out=. --go-grpc_out=require_unimplemented_servers=false:./ ./*.proto 阅读全文
posted @ 2022-09-03 00:42 coder_xds 阅读(200) 评论(0) 推荐(1) 编辑
摘要: Go go get 第三方包成功过后在项目里无法引用 原因是因为未设置goproxy代理 阅读全文
posted @ 2022-09-02 23:46 coder_xds 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 大概率原因是项目所在顶层目录如home空间已满。 阅读全文
posted @ 2022-05-15 14:17 coder_xds 阅读(248) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq_27508477/article/details/100571942 阅读全文
posted @ 2022-02-09 17:23 coder_xds 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 开发中在使用preg_match()验证中文正则报错 解决方法: /^[\x80-\xff]{6,30}$/ 代替 /^[\u4e00-\u9fa5]{2,32}$/ 具体原理,参考:https://blog.csdn.net/u013101178/article/details/82756550 阅读全文
posted @ 2021-08-12 20:21 coder_xds 阅读(295) 评论(0) 推荐(0) 编辑
摘要: activated() { this.$nextTick(() => { this.$refs.table.doLayout(); //解决表格错位 table替换表格的ref }); } 阅读全文
posted @ 2021-07-18 23:44 coder_xds 阅读(602) 评论(0) 推荐(0) 编辑
摘要: WorksModel use yii\db\ActiveRecord; class WorksModel extends ActiveRecord { public static function tableName() { return 'vote_works'; } public functio 阅读全文
posted @ 2021-07-04 23:38 coder_xds 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 1.attributes是和数据库表字段成映射关系的,也就是说attributes里面的属性名称是和表字段一样,当前端提交表单的name属性和数据表对应的字段名称不一样时,那么这个数据表字段在attributes的值默认NULL了。 2.规则rule数组中没有定义值为NULL的字段。 阅读全文
posted @ 2021-07-04 00:53 coder_xds 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 框架默认是字段值为空则跳过验证,所以我们要在规则里面关掉这个机制。 ['content', 'validateContent', 'skipOnEmpty' => false] 阅读全文
posted @ 2021-07-04 00:47 coder_xds 阅读(107) 评论(0) 推荐(0) 编辑
摘要: curl -R -O http://www.lua.org/ftp/lua-5.3.0.tar.gz tar zxf lua-5.3.0.tar.gz cd lua-5.3.0 make linux test #readline/readline.h #提示readline目录不存在 yum ins 阅读全文
posted @ 2021-04-10 22:30 coder_xds 阅读(35) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页