匠心不改,精益求精!
[ 登陆 - 注册 ]

相关分类

欢迎 小蝌蚪加大 的加入!

在给网站杀毒时发现这串代码,意思是判断是搜索引擎来访问我们网站时,跳转到指定的网站去<script type="text/javascript">var s=document.referrer;if(s.indexOf("google")>0 || s.indexOf("baidu"

需要引入animate.min.css 这款动画css或者也可以直接使用七牛静态库的地址。<link href="http://cdn.staticfile.org/animate.css/3.5.2/animate.min.css" rel="stylesheet" />注意需要加上 animated 类

https://leafo.net/lessphp/

/*数组按指定元素key值分组 * @param $dataArr array 原二组数组 * @param $keyStr string 指定元素key值 * @return array */ public function d

链式操作的column方法column('要查询的字段','key等指定的字段')例:字段name值等于key值$nav = Db::name('nav')->order('sort asc')->column('*','name');

php正则表单式用括号"()"包含起来的部份内容等于匹配到的内容,赋值给变量$1、$2、$3....第一个()匹配到的内容,等于$1以此类推举例:要向的html代码中div标签添加一个内容$htmlCode = '<div>我的代码:</div>';$addC

在thinkphp核心文件中/thinkphp/library/think/Template.php  178行$cacheFile = $this->config['cache_path'] . $this->config['cache_prefix'] 

压缩cssfunction compress_css($buffer) {  /* remove comments */  $buffer = preg_replace("!/\*[^*]*\*+([^/][^*]*\*

自定义函数/**  * 字符串只替换一次  * @param string $needle 需要替换的字符串  * @param string $replace 替换后的字符串  * @param&nbs

新网的虚拟主机,被反应说太消耗资源被关停了,经过一系列的排查,除了删除病毒文件外发现一个adminer.php的文件,百度搜一下,原来是 是一款轻量级的Web端数据库管理工具同时也查到了低版本存在洞, 正好就是个低版本的,该版本就是病毒的根源所在,更新版本或删除掉 。adminer官网 https://www.adminer.org

首先我们有一个PHP内置函数 count();count(array,mode); array是数组,mode默认为0,1是递归的计数<?phpif(count($arr) == count($arr,1)){    echo "是一维";}else{   echo "不是一维&qu

微信,只要是涉汲支付功能的,以个人身份注册都使用不了,注意以个人身份注册的,变更为公司主体时还得交300元审核费用,审核不过费用也不退!这个是很坑的地方,注册时要想好,做一个微信小程序商城,要看一下微信和技术开发这两个方面的刚需条件。先看一下微信需要的资质条件:1 、你必须是公司或工商个体户,有营执照才可以(因为商城涉

监听的事件有  select(选中) ,checkbox(勾选),swich(开关),radio(选择),submit(提交)例: //选中事件,指定监听 isAdd 字段<div class="layui-form"> <input type="checkbox&q

var ue = UE.getEditor('editor',{initialFrameWidth:'100%',initialFrameHeight:200}); //初始化百度编辑器 ue.addListener('focus',function(editor)

components - 自定义组件的目录pages - 页面存放目录static - 静态文件资源目录unpackage - 编译后的文件存放目当utils - 公用的工具类common - 公用的文件app.vue - app.jsmain.js - 应用入口manifest.json - 项目配置pages.js

引入tablednd插件<script type="text/javascript" src="jquery.tablednd_0_5.js" ></script><!--表格拖动插件-->html  代

匹配 你我他,任意一个汉字if(!preg_match("/[你我他]/u",$v['content'])){      ehco '匹配到了';  }一定要在后面加模式修饰符 u&n

关闭layer父级弹窗var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引 parent.layer.close(index); //再执行关闭刷新父页parent.window.

添加一个自定义一个函数$.fn.serializeJson=function(){   var serializeObj={};   var array=this.serializeArray();   var str=this.serialize()

var ua = navigator.userAgent.toLowerCase(); var isWeixin = ua.indexOf('micromessenger') != -1; if (isWeixin) {  &n