开发笔记
开发笔记
E%3Dmc%B2
Thousand of time I have thought of you .My heart is going high into the air and flying with my blessing towards you .I don’t care loneliness. I am satisfied when you are happy and I am happy when I think of you!
展开
-
MySQL笔记
1.MySQL查询当月截至当天日期 SELECT @cdate := date_add( @cdate, INTERVAL - 1 DAY ) AS days FROM mysql.help_keyword, ( SELECT @cdate := date_add( curdate( ), INTERVAL 1 DAY ) ) t1 WHERE help_keyword_id < DAY ( curdate( ) ) ORDER BY days 2.MySQL查询当月每一天日期.原创 2021-05-20 13:59:30 · 184 阅读 · 0 评论 -
JavaWeb开发笔记(2020年)
1.js替换全部字符串 - 无replaceAll的解决方案 原生js中并没有replaceAll方法,只有replace,如果要将字符串替换,一般使用replace var str = '2016-09-19'; var result = str.replace('-',''); console.log(result); ... 201609-19 replace只会替换找到的第一个原字符,如果想替换所有的字符串,有两种方案: (1)正则表达式替换所有字符 就需要使用正则表达式: var原创 2020-06-30 14:56:31 · 224 阅读 · 0 评论 -
JavaWeb开发笔记(2016年)
JavaWeb开发笔记(2016年) @copyright 版权声明:本文为原创文章,未经允许不得转载。 一.2016/02/26 1.html页面让输入框只能输入数字和小数点 a 限制文本框只能输入正数,负数,小数 onkeyup="value=value.replace(/[^\-?\d.]/g,'')" b 限制文本框只能输入正数,小数 onkeyup="value=value....原创 2016-08-29 17:16:31 · 1236 阅读 · 1 评论 -
JavaWeb开发笔记(2015年)
JavaWeb开发笔记(2015年) @copyright版权声明:本文为原创文章,未经允许不得转载。 一.2015/11/2 1.onfocus="this.blur();" onfocuse是聚焦的意思,当你把光标放在文本框上输入的时候,就是聚焦,但这里添加了"this.blur();",blur的作用就是去除聚焦,也就是你不能把光标放在这个文本框上,换句话说就是你不能输入文本了。...原创 2015-11-02 20:32:41 · 1456 阅读 · 0 评论 -
JavaWeb开发笔记(2019年)
1.JavaScript获取浏览器类型与版本 function getBrowserInfo(){ var Sys = {}; var ua = navigator.userAgent.toLowerCase(); var re = /(msie|firefox|chrome|opera|version).*?([\d.]+)/; var m = ua.match(re); Sys....原创 2019-03-11 10:20:38 · 233 阅读 · 0 评论