如何解决chrome浏览器打印和ie浏览器打印不一致问题? 今天在做打印的时候发现,ie浏览器打印页面是一页,而chrome打印是两页,为了解决一下问题,我们可以判断浏览器设置页面scale function myBrowser(){ var userAgen...
动态表格合并 <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/htm...
win10右键改为cmd命令 HKEYCLASSESROOT\Directory\Background\shell右键单击右窗格中的HideBasedOnVelocityId值名称(其默认值数据为0x00639bc8(652794...
node抓取数据 var express=require('express');//引入模块 var cheerio=require('cheerio'); var superagent=require('supera...
layui table的数值保留两位小数 function fixed(str) { if (!str) str = '0.00'; let ret = Math.round(parseFloat(str) * 100) / 100; let...
js替换url里面的变量 function replaceParamVal(paramName,replaceWith) { var oUrl = this.location.href.toString(); var re=e...
mongoDb安装 2、作为服务进行安装 使用管理员权限打开windows的cmd窗口,进入D:\dev\mongodb-win32-x8664-2.4.5\bin目录。 mongod.exe --install --l...
$regex使用 $regex操作符的介绍 MongoDB使用$regex操作符来设置匹配字符串的正则表达式,使用PCRE(Pert Compatible Regular Expression)作为正则表达式语言。 r...
禁用浏览器后退 <script language="javascript"> //防止页面后退 history.pushState(null, null, document.URL); window.ad...