`
文章列表
<!doctype html> <html> <head> <meta charset="UTF-8"> <title>Navigator详解,IE11,chrome和firefox浏览器下</title> <script> //属性 var appCodeName= window.navigator.appCodeName; // 返回与浏览器相关的内部代码名 都为Mozilla var ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title></title> </head> <body> <input type="text" id="searchInput"/> <script> var success_jsonpCallback = function ...
<!DOCTYPE html> <html> <head> <title>Test</title> <style type="text/css" > html,body { height:100%; width:100%; padding:0; margin:0; } .dialog ...
问题详情: Error: Connection lost: The server closed the connection. at Protocol.end (/opt/node-v0.10.20-linux-x64/IM/node_modules/mysql/lib/protocol/Protocol.js:73:13) at Socket.onend (stream.js:79:10) at Socket.EventEmitter.emit (events.js:117:20) at _stream_readable.js:920:16 at process._tickCa ...
function isOnline(){
<!DOCTYPE html> <html lang="zh-cn"> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8"> <title>下拉滚动条滚到底部了吗?</title> <body> <div id="div1" style="overflow-y:auto; overflow-x:h ...
<!DOCTYPE html> <html> <head lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title></title> </head> <body> <h3>文本选择预览</h3> ...
使用nodejs,采用express是一个很好的选择,也可自己采用http库直接实现。该列子通过简单的事件,把数据粘起来,从而能应对post模式中大数据传输的要求。 var http = require('http'); var url = require('url'); function test1(receiveBuf, res){ //do something res.end('====>set ok Hello World 1\n'); } function test2(receiveBuf,res){ //do something ...
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> <style type="text/css"> @-webkit-keyframes testAnim { 0% {-webkit-filter: grayscale(0.5) blur(1px) saturate(2) ...
    appendHTML:   HTMLElement.prototype.appendHTML = function(html) { var divTemp = document.createElement("div"), nodes = null // 文档片段,一次性append,提高性能 , fragment = document.createDocumentFragment(); divTemp.innerHTML = html; nodes = divTemp.childNodes; ...
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track, ::-webkit-scrollbar-thumb { border-radius: 999px; border: 0px solid transparent; background-color:rgba(50,50,50,0.2) } ::-webkit-scrollbar-track { box-shadow: 1px 1px 5px rgba(0,0,0,.2) inset; } ...
io.sockets.on('connection', function(socket) { var socketId = socket.id var clientIp = socket.request.connection.remoteAddress console.log(clientIp) })  
       最简单的方法就是调换顺序,将需要右浮动的元素写在前面。 如 <ul class="circleBtns"> <li id="xiaozhao" class="hb_cb"> <a href=""></a></li> <li id="shezhao" class="hb_cb"> ...
1. 取整同时转成数值型: '10.567890'|0 结果: 10 '10.567890'^0 结果: 10 -2.23456789|0 结果: -2 ~~-2.23456789 结果: -2 2. 日期转数值:
一、基础1、说明:创建数据库CREATE DATABASE database-name2、说明:删除数据库drop database dbname3、说明:备份sql server--- 创建 备份数据的 deviceUSE masterEXEC sp_addumpdevice 'disk', 'testBack', 'c:\mssql7backup\MyNwind_1.dat'--- 开始 备份BACKUP DATABASE pubs ...
Global site tag (gtag.js) - Google Analytics