上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 33 下一页

2022年5月19日

使用calc不管用时,需要注意的坑

摘要: 先说问题: 在使用calc时,使用的格式如下:width:calc(100%-100px); 结果不管用,改成 width:calc(100% - 100px); 即可管用(减号左右要有空格才行); + 和 - 运算符的两边必须要有空白字符。比如,calc(50% -8px) 会被解析成为一个无效的 阅读全文

posted @ 2022-05-19 08:18 zyp_java_net 阅读(371) 评论(0) 推荐(0)

2022年5月18日

es6之扩展运算符 三个点

摘要: es6之扩展运算符 三个点(…)对象的扩展运算符理解对象的扩展运算符其实很简单,只要记住一句话就可以: 对象中的扩展运算符(...)用于取出参数对象中的所有可遍历属性,拷贝到当前对象之中 let bar = { a: 1, b: 2 };let baz = { ...bar }; // { a: 1 阅读全文

posted @ 2022-05-18 14:56 zyp_java_net 阅读(29) 评论(0) 推荐(0)

2022年5月17日

Loading local data is disabled; this must be enabled on both the client and server sides

摘要: mysql使用文件导入数据是报错: Loading local data is disabled; this must be enabled on both the client and server sides 临时解决办法: 命令行输入mysql登录命令: mysql --local-infil 阅读全文

posted @ 2022-05-17 10:22 zyp_java_net 阅读(866) 评论(0) 推荐(0)

2022年5月16日

NPM 换源

摘要: 显示当前的镜像网址: npm get registry显示:https://registry.npmjs.org/ 更换淘宝的镜像网址: npm config set registry http://registry.npm.taobao.org 再次查看当前镜像: npm get registry 阅读全文

posted @ 2022-05-16 17:35 zyp_java_net 阅读(38) 评论(0) 推荐(0)

2022年5月15日

Mysql 字符串字段判断是否包含某个字符串的3种方法

摘要: 1. 方法1: INSTR函数用法 mysql 进行模糊查询时,可使用内部函数 instr,替代传统的 like 方式,并且速度更快。 instr(field, str) 函数,第一个参数 field 是字段,第二个参数 str 是要查询的串,返回串 str 的位置,没找到就是0 select * 阅读全文

posted @ 2022-05-15 22:24 zyp_java_net 阅读(764) 评论(0) 推荐(0)

2022年5月14日

mysql 获取所有父级

摘要: with recursive t as( select * from jk_his_kszdb where sid = '114' union all select a.* from jk_his_kszdb a join t on a.sid = t.parent_id)select * from 阅读全文

posted @ 2022-05-14 16:02 zyp_java_net 阅读(281) 评论(0) 推荐(0)

2022年5月11日

mysql8.0创建函数错误代码1418解决方法和原因

摘要: 1、开启创建函数功能 -- 1、查看创建函数是否开启 如果Value处值为OFF,则需将其开启。show variables like '%func%';-- 2、开启MySQL函数功能set global log_bin_trust_function_creators=1;-- 3、关闭MySQL 阅读全文

posted @ 2022-05-11 10:31 zyp_java_net 阅读(265) 评论(0) 推荐(0)

2022年4月28日

html让同一行的文字和图片居中对齐显示

摘要: <div class="satisDiv span12 borderB pad10px h44"> <span class="fs028rem ">满意度:</span> <span class="ml030rem fs028rem">十分满意</span> <img class="ml020rem 阅读全文

posted @ 2022-04-28 18:07 zyp_java_net 阅读(598) 评论(0) 推荐(0)

2022年4月27日

MySQL统计NULL字段处理

摘要: 使用COALESCE(value,…) 函数,结果和IFNULL 函数一样 阅读全文

posted @ 2022-04-27 11:39 zyp_java_net 阅读(133) 评论(0) 推荐(0)

2022年4月25日

mysql判断字段是否为汉字

摘要: mysql判断字段是否为汉字 因为汉字占两个字符所以length下一个汉字的长度为3,char_lengt的长度为1,所以比较两者计算的长度就可判断是否含有汉字 SELECT * from t_device where length(town)!=char_length(town)SELECT * 阅读全文

posted @ 2022-04-25 12:58 zyp_java_net 阅读(434) 评论(0) 推荐(0)

上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 33 下一页

导航