- 博客(39)
- 收藏
- 关注
转载 node.js socket支持https 配置修改
nodejs 需要有 https模块和 fs模块(文件系统)var socketio = require('socket.io'), fs = require('fs'), //引入fs模块 https = require('https'), // 引入http模块改为 引入https 注意相应位置修改 domain = require('domain')...
2017-08-11 15:34:00
319
转载 H5去除 a标签 按钮 点击事件 出现灰色背景
在CSS文件开头 或 页面开头 添加*{-webkit-tap-highlight-color:rgba(0, 0, 0, 0); -moz-tap-highlight-color:rgba(0, 0, 0, 0); -ms-tap-highlight-color:rgba(0, 0, 0, 0); -o-tap-highlight-color:rgba(0, 0, 0, 0)...
2017-08-10 09:31:00
413
转载 JS 处理输入框表情
oninput input/textarea 监听输入状态 function filteremoji(content){ var ranges = [ '\ud83c[\udf00-\udfff]', '\ud83d[\udc00-\ude4f]', '\ud83d[\ud...
2017-08-05 19:30:00
371
转载 MySql 数据库 group 分组 排序 每组获取最新一条
SELECT * FROM (SELECT * FROM `cmf_users_liverecord` ORDER BY id desc ) test where islive='1' GROUP BY uid ORDER BY id desc;转载于:https://www.cnblogs.com/lvzhihui/p/6008317.html
2016-10-28 16:20:00
174
转载 远程图片下载
1、php copy 响应时间过长$image='http://wx.qlogo.cn/mmopen/xYy6WvcRDUIyje9icalqbspL5n9viccxIvtnN4srncZINWZHsq0ZosMJrJbkdacZuX1YSg9w005dQ5JdicyXG07wtO9ZMglRI8ib/0';$file_path='./passport'; @mkd...
2016-08-19 16:25:00
127
转载 多维数组提取某一字段转换为一维数组 array_column
array_column 为PHP自带函数 需要 (PHP 5 >= 5.5.0, PHP 7)当PHP版本的低时 可用自定义行数来实现function array_column($input, $columnKey, $indexKey = NULL){ $columnKeyIsNumber = (is_numeric($columnKey)) ? TRUE : ...
2016-07-27 09:42:00
276
转载 git 项目提交 git.oschina.net
git pull --rebase origin mastergit push -u origin master转载于:https://www.cnblogs.com/lvzhihui/p/5252756.html
2016-03-08 09:04:00
178
转载 JS版 数字 金额 格式化 方法
/** * JS版 数字 金额格式化 * @param string s 需要处理的数字串 * @param string n 保留小数的位数 */function fmoney(s, n) { n = n >= 0 && n <= 20 ? n : 2; s = parseFloat((s + "").re...
2016-02-20 16:21:00
99
转载 响应式WEB设计
1、常见浏览器窗口的尺寸断点:960px 1024px 1280px 1366px 1440px 1680px2、 @media screen and (max-width:960px) // 960px 以下尺寸 @media screen and (min-width:961px) and (max-width:1024px) // 961px -102...
2016-02-20 08:47:00
93
转载 http.ini web.config .htaccess 配置
.htaccess文件是Apache服务器中的一个配置文件,它负责相关目录下的网页配置。httpd.ini文件是IIS的配置文件。web.config文件是一个XML文本文件,它用来储存ASP.NETWeb 应用程序的配置信息。.httaccess 格式:<IfModulemod_rewrite.c>Options+FollowSym...
2016-01-19 14:22:00
378
转载 IIS 伪静态
一、IIS 配置: 1、使用ISAPI_Rewrite: 1.1 下载破解包 http://pan.baidu.com/s/1mhvg0g4 1.2 安装 ISAPI_Rewrite3 运行文件 ISAPI_Rewrite3_0073.msi; ...
2016-01-19 08:57:00
145
转载 Meta标签中的format-detection属性及含义
format-detection翻译成中文的意思是“格式检测”,顾名思义,它是用来检测html里的一些格式的,那关于meta的format-detection属性主要是有以下几个设置:metaname="format-detection"content="telephone=no"metaname="format-detection"content="email=no...
2015-12-26 09:08:00
127
转载 点击空白处关闭弹出层
1、$(document).mouseup(function(e){ var _con = $(' 目标区域 '); // 设置目标区域 if(!_con.is(e.target) && _con.has(e.target).length === 0){ // Mark 1 some code... // 功能代码 }});/*...
2015-12-09 09:56:00
107
转载 css 阴影效果
text-shadow是给文本添加阴影效果,box-shadow是给元素块添加周边阴影效果。随着html5和CSS3的普及,这一特殊效果使用越来越普遍。基本语法是{box-shadow:[inset] x-offset y-offset blur-radius spread-radiuscolor}对象选择器 {box-shadow:[投影方式] X轴偏移量 Y轴偏移量阴影模糊半...
2015-12-07 11:17:00
118
转载 php 配置问题
failed to open stream: No errorextension=php_openssl.dll 开启转载于:https://www.cnblogs.com/lvzhihui/p/5002701.html
2015-11-28 14:49:00
92
转载 正则表达式
只能输入1个数字表达式 ^\d$描述 匹配一个数字匹配的例子 0,1,2,3不匹配的例子只能输入n个数字表达式 ^\d{n}$ 例如^\d{8}$描述 匹配8个数字匹配的例子 12345678,22223334,12344321不匹配的例子只能输入至少n个数字表达式 ^\d{n,}$ 例如^\d{8,}$...
2015-11-24 15:36:00
112
转载 sublime text 3 快捷键大全
Ctrl+Shift+P:打开命令面板Ctrl+P:搜索项目中的文件Ctrl+G:跳转到第几行Ctrl+W:关闭当前打开文件Ctrl+Shift+W:关闭所有打开文件Ctrl+Shift+V:粘贴并格式化Ctrl+D:选择单词,重复可增加选择下一个相同的单词Ctrl+L:选择行,重复可依次增加选择下一行Ctrl+Shift+L:选择多行Ctrl+Shift+Enter:在当前行前插入新行...
2015-11-17 13:56:00
79
转载 cordova 时间控件 cordova-plugin-datepicker
varoptions={date:newDate(),mode:'date'};functiononSuccess(date){alert('Selecteddate:'+date);}functiononError(error){//Androidonlya...
2015-11-16 15:50:00
184
转载 ionic 监听路由事件 验证登录
.run(['$rootScope', '$location' , '$state', '$http','$ionicPopup', function($rootScope, $location, $state,$http,$ionicPopup){ var loginname=['tab.member','loan','repayment','iftab.exe']; ...
2015-11-15 19:20:00
157
转载 angular js 问题
路由界面 表单提交 提交时 :$scope.username 获取不到 注意 页面中 内容 标签代码 用 ion-con 转载于:https://www.cnblogs.com/lvzhihui/p/4956365.html...
2015-11-11 16:31:00
61
转载 angular输出html
在用angular作为前端搭建APP的时候,发现用angularJs输出html的时候,浏览器并不解析这些html标签,不知道angularjs如何实现这种功能的。但是这里我们需要其显示angular输出的html能被浏览器解析怎么办呢?通过api,发现通过指令 ng-bind-html来实现html的输出。需要通过通过$sce服务来实现html的展示。JS...
2015-11-11 15:15:00
221
转载 AngularJS的内置过滤器
内置过滤器使用方法:一个过滤器,不带参数的情况{{expression | filter}}一个过滤器,带参数的情况{{expression | filter:arguments}}一个过滤器,带多个参数的情况{{expression | filter: arg1: arg2: ...}}多个过滤器,不带参数的情况{{expression | filter1 | filt...
2015-11-05 08:55:00
128
转载 ionic
1、默认配置修改 (android 和 IOS 默认不同).config(function($ionicConfigProvider) { $ionicConfigProvider.views.maxCache(5); // note that you can also chain configs $ionicConfigProvider.tabs.position("b...
2015-10-23 15:43:00
67
转载 web 页面手机访问 点击背景框 问题
-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none; 转载于:https://www.cnblogs.com/lvzhihui/p/4898610.html
2015-10-21 18:14:00
113
转载 CSS 和 JavaScript 标签 style 属性对照表
CSS 和 JavaScript 标签 style 属性对照表:盒子标签和属性对照颜色和背景标签和属性对照样式标签和属性对照文字样式标签和属性对照文本标签和属性对照CSS语法(不区分大小写)JavaScript语法(区分大小写)borderborderborder-bottomborderBottom...
2015-09-30 13:19:00
143
转载 CSS div 图片居中
<style>.box { /*非IE的主流浏览器识别的垂直居中的方法*/ display: table-cell; vertical-align:middle; /*设置水平居中*/ text-align:center; /* 针对IE的Hack */ *display: block; *font-size: 175px;/*约为高度的0.873,200*0.873 约为1...
2015-09-25 15:45:00
82
转载 php 去除标签代码
1、strip_tags(string,allow)2、转编码$getcontent = iconv('gb2312','utf-8',file_get_contents($url)); $getcontent = preg_replace( "@<head>(.*?)</head>@is", "", $getcontent )...
2015-09-19 16:52:00
84
转载 Thinkphp
字符串截取{$vo.title|msubstr=0,5,'utf-8',false}{$vo.title|msubstr=0,5}IISweb.config 配置<?xml version="1.0" encoding="UTF-8"?><configuration> <system.webServer> <rewr...
2015-09-18 10:19:00
73
转载 CSS 隔行换色
#list1 li:nth-of-type(odd){ background:#00ccff;}奇数行#list1 li:nth-of-type(even){ background:#ffcc00;}偶数行#list2 li:nth-child(4n+1){ background:#00ccff;}从第一行开始算起 每隔4个(包含第四个)使用此样式#list00000 li:nth...
2015-09-11 18:05:00
99
转载 JS获取长度方法总结
length:length是JS原生的方法,用于获取元素的个数或者对象的长度,从1开始//用于获取对象的长度,从1开始var length = $("#uw3c").length;size():size()是jQuery中的方法,用来获取元素个数,从1开始。//用于获取对象的长度,从1开始var length = $("#uw3c").size();length与...
2015-09-11 17:28:00
571
转载 js实现上传图片及时预览
方法1 :javascript<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" &g...
2015-08-24 12:00:00
113
转载 数组相关操作
数组排序二维数组:(1、) function cmpx($a, $b){ $al = ($a['giftcount']); $bl = ($b['giftcount']); if ($al == $bl){ return 0; } return ($al > $bl) ? -1 : 1; } usort($zxg...
2015-08-22 14:53:00
222
转载 浏览器兼容问题
1, FF下给 div 设置 padding 后会导致 width 和 height 增加, 但IE不会.(可用!important解决) 2, 居中问题. 1).垂直居中.将 line-height 设置为 当前 div 相同的高度, 再通过 vetical-align: middle.( 注意内容不要换行.) 2).水平居中. margin: 0 auto;(当然不是万能) 3, 若...
2015-08-07 08:29:00
76
转载 zDialog弹出层 效果
演示网址 http://www.17sucai.com/html/window/demo.html<style type="text/css">body{background:#ffffff;color:#444;font-size:12px;}a{color:#07c;text-decoration:none;border:0;background-col...
2015-08-03 08:13:00
234
转载 jQuery扁平手风琴代码
演示网址:http://www.jq22.com/yanshi3583HTML 代码 部分<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>云之讯jQuery扁平手风琴代码 - 站长素材</title>...
2015-07-16 08:41:00
86
转载 jquery.fullPage.js全屏滚动插件
效果演示 网站 http://www.51xuediannao.com/demo.php插件下载 http://www.51xuediannao.com/js/jquery/jquery.fullPage.htmljquery.fullPage.js是一个全屏滚动插件,本文提供jquery.fullPage实例教程演示看啥都不如看演示来的直观,走起!基本...
2015-07-10 08:35:00
80
转载 jquery积分提示效果插件
<!DOCTYPE HTML><html><head><meta charset="utf-8"><title>jquery积分提示效果</title><meta name="keywords" content="jquery特效,jquery提示效果,积分效果" /><meta name="des...
2015-07-08 08:28:00
100
转载 tab选项卡切换效果
<style type="text/css"><!--* { margin:0; padding:0 }a{color:#333;}div, dl, dt, dd { display:inline-block; }div, dl, dt, dd { display:block }h2{ font: 800 12px/20px "宋体"; }#tabs { border:...
2015-07-08 08:17:00
95
转载 jquery validate强大的jquery表单验证插件
jquery.validate.js使用之自定义表单验证规则//邮箱 表单验证规则jQuery.validator.addMethod("mail", function (value, element) { var mail = /^[a-z0-9._%-]+@([a-z0-9-]+\.)+[a-z]{2,4}$/; return this.optional(ele...
2015-07-06 08:48:00
134
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人