热门 addeventlistener的兼容性写法

时间:2018-5-7   作者:lininn   分类:   热度:2080°    
时间:2018-5-7   分类:    热度:2080  
var addEvent = function(element,type,callback){ if(element.addEventListener){ element.addEventListener(type,callback,false); }else if(element.attachEvent){ element.attachEvent('on' + type,callback) } } window.onload = function(){...

阅读全文>>

热门 nginx配置https证书访问

时间:2018-4-27   作者:lininn   分类:   热度:2224°    
时间:2018-4-27   分类:    热度:2224  
 server {        listen       80; listen 443 ssl spdy;         server_name  lovelining.com;          ssl_certificate F:\phpstudy/nginx/ssl/1_lovelining.com_bundle.crt;   ssl_certificate_key F:/p...

阅读全文>>

热门 nginx配置php访问和域名配置转发内网服务器

时间:2018-4-27   作者:lininn   分类:   热度:3715°    
时间:2018-4-27   分类:    热度:3715  
#指的是当访问80端口时候,默认使用php指向本地路径,当访问指定域名时候转发到3000端口的node服务器上     server {         listen       80;        server_name  localhost;         #charset koi8-r;         #access_log  ...

阅读全文>>

热门 apache配置反向代理

时间:2018-4-26   作者:lininn   分类:   热度:2090°    
时间:2018-4-26   分类:    热度:2090  
vhosts.conf <VirtualHost *:8080> ServerAdmin webmaster@dummy-host.example.com ServerName j.ptl.com ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://127.0.0.1:81/ ProxyPassReverse / http://127.0.0.1:81/ </VirtualHost> ...

阅读全文>>

热门 如何解决chrome浏览器打印和ie浏览器打印不一致问题?

时间:2018-4-17   作者:lininn   分类:   热度:3223°    
时间:2018-4-17   分类:    热度:3223  
今天在做打印的时候发现,ie浏览器打印页面是一页,而chrome打印是两页,为了解决一下问题,我们可以判断浏览器设置页面scale function myBrowser(){ var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串 var isOpera = userAgent.indexOf("Opera") > -1; if (isOpera) { return "Opera" }; //判断是否Opera浏览器 if (userAgent...

阅读全文>>

热门 动态表格合并

时间:2018-4-16   作者:lininn   分类:   热度:2194°    
时间:2018-4-16   分类:    热度:2194  
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>table合计</title> </head> <body> </body> <style type="text/css"> table{ font-family: 黑体; font-size: 14pt; border-color:r...

阅读全文>>

热门 win10右键改为cmd命令

时间:2018-4-12   作者:lininn   分类:   热度:2139°    
时间:2018-4-12   分类:    热度:2139  
HKEY_CLASSES_ROOT\Directory\Background\shell右键单击右窗格中的HideBasedOnVelocityId值名称(其默认值数据为0x00639bc8(6527944)),然后选择重命名。将名称更改为ShowBasedOnVelocityId。

阅读全文>>

热门 node抓取数据

时间:2018-4-10   作者:lininn   分类:   热度:2255°    
时间:2018-4-10   分类:    热度:2255  
var express=require('express');//引入模块 var cheerio=require('cheerio'); var superagent=require('superagent'); var app=express(); app.get('/',function(req,res,next){ superagent.get('http://weibo.com').set("Cookie","SINA90.109.1522659071912; login_sid_t=01a3d08aa6089968c7750ef2a6e38c04; cross...

阅读全文>>

热门 layui table的数值保留两位小数

时间:2018-4-4   作者:lininn   分类:   热度:9976°    
时间:2018-4-4   分类:    热度:9976  
function fixed(str) { if (!str) str = '0.00'; let ret = Math.round(parseFloat(str) * 100) / 100; let decimal = ret.toString().split('.'); if (decimal.length === 1) { return ret.toString() + '.00' }; if (decimal.length > 1) { if (decimal[1].length < 2) { return ret.toStrin...

阅读全文>>

返回顶部    首页    手机版本    后花园   会员注册   
版权所有:覆手为雨    站长: lininn