// 过滤掉emoji表情 function filter_Emoji($str) { $str = preg_replace_callback( //执行一个正则表达式搜索并且使用一个回调进行替换 '/./u', function (array $match) { return strlen($m... ...
分类:
Web程序 时间:
2019-07-01 10:55:27
阅读次数:
138
函数的参数:可以在编辑栏中输入=left()会有函数的提示信息。文本函数:1.left2.right3.mid:MID(text,stat_num,num_chars)4.len:5.exact6.replace7.trim8.find9.search10.text:TEXT(value,format_text)时间函数:1.数字格式转化成日期例如20170617date(left("2
分类:
其他好文 时间:
2019-07-01 10:26:36
阅读次数:
122
描述 Python replace() 方法把字符串中的 old(旧字符串) 替换成 new(新字符串),如果指定第三个参数max,则替换不超过 max 次。 语法 replace()方法语法: str.replace(old, new[, max]) 参数 old -- 将被替换的子字符串。 ne ...
分类:
编程语言 时间:
2019-06-30 19:09:11
阅读次数:
148
var time = [00:00:00 - 01:01:01] if ($('.diy-time').length > 1) { $('.diy-time').each(function(k,v){ //验证开始时间段不能大于结束时间段 var val = $(v).val().replace(/... ...
分类:
其他好文 时间:
2019-06-30 15:45:38
阅读次数:
89
转自https://www.cnblogs.com/sgm4231/p/9782271.htmlphp中常用的正则表达式函数 * preg_match() * preg_match_all() * preg_replace() * preg_filter() * preg_grep() * preg ...
分类:
Web程序 时间:
2019-06-29 10:53:07
阅读次数:
143
总览 (SYNOPSIS) xargs [-0prtx] [-e[eof-str]] [-i[replace-str]] [-l[max-lines]] [-n max-args] [-s max-chars] [-P max-procs] [--null] [--eof[=eof-str]] [- ...
分类:
其他好文 时间:
2019-06-28 15:22:23
阅读次数:
104
一个程序最忌讳的就是把自己的数据暴露给其他人,一个加解密可以让你感觉安全性好一些 直接上代码 一个加密类 加密 解密 如有疑问请咨询 ...
分类:
其他好文 时间:
2019-06-28 15:04:31
阅读次数:
85
转:https://www.cnblogs.com/zhensg123/p/11078579.html 很多时候需要利用formdata数据格式进行前后端交互。 前端代码可以是如下所示: 上面代码不仅有直接生成的formdata数据,还有利用append添加的。 后端应该怎么接收? 接收方案之一是利 ...
分类:
Web程序 时间:
2019-06-28 11:57:06
阅读次数:
182
原文:C# byte和10进制、16进制相互转换 var SRMP = new byte[4]; Array.Copy(Encoding.UTF8.GetBytes(1.ToString("x2")), SRMP, Encoding.UTF8.GetBytes(1.ToString("x2")).L... ...
str.replace(str.length() - 1, str.length(), ""); str.replace(str.length() - 1, str.length(), ""); str.replace(str.length() - 1, str.length(), ""); <!- ...
分类:
其他好文 时间:
2019-06-26 16:25:03
阅读次数:
75