原创 JS 獲取屏幕大小

JS獲取屏幕大小 <html> <script> function a(){ document.write( "屏幕分辨率爲:"+screen.width+"*"+screen.height +"<br />"+ "屏幕可用大小:"+sc

原创 JAVA - 基本數據類型

Java中的基本數據類型 1、Java中的基本數據類型 整形類型:byte , short , int , long 浮點類型:float , double 布爾類型:true ,  false 字符類型:char 2、基本類型的長度

原创 Hadoop - single node setup

1. softwares:       1. VMware_workstation_10.0.4.exe             { HA4AM-AM38K-CZH39-XKC7K-23871 | 4A27Q-FHKEL-WZQH1-

原创 Struts2 學習筆記

Struts2 基礎學習 Struts2 get/set 自動獲取/設置數據 ActionSuport類引入 1、Action設置數據 1 屬性驅動(fieldDriven)  A.基本數據類型屬性  name

原创 bootstrap 學習筆記 - 2 (排版+代碼 樣式)

Bootstrap學習 Bootstrap學習之 - 排版樣式 標題(<h>標籤) 樣例代碼:(bootstrap已經對h標籤進行了樣式定義) <%@ page language="java" import="java.util

原创 Node.js 模塊之【mongoose】MongoDB操作模塊

1. 安裝mongoose npm i mongoose --save-dev 2. 引入mongoose const mongoose = require('mongoose'); 3. 連接數據庫 mongoose.Promise =

原创 Java分佈式

資源鏈接:Java分佈式架構的演變及解決方案http://www.cnblogs.com/malcome/articles/5909632.html 分佈式1、單機裸跑:LAMP = [Linux + A

原创 Node.js 常用插件集合

Node.js 常用插件集合 異步處理 async | Q() 日期處理 moment 日誌處理 log4js | morgan 工具集 underscore 定時任務 cron | later (定時任務) 數據庫 mongoose

原创 使用【WinRAR】對【Mysql 數據庫】進行定時備份

1、Mysql數據庫備份 利用WinRAR對MySQL數據庫進行定時備份。  對於MySQL的備份,最好的方法就是直接備份MySQL數據庫的Data目錄。下面提供了一個利用WinRAR來對Data目錄進行定時備份的方法。首先當然要把Win

原创 Ember.js API (v2.11.0) 翻譯 ---004.Routing---002---Defining Your Routes Edit Page(定義你的路由)

Defining Your Routes Edit Page 定義你自己的路由 When your application starts, the router matches the current URL to the routes

原创 Ember.js API (v2.11.0) 翻譯 ---004.Routing---Introduction(引言)

Introdution 引言 Imagine we are writing a web app for managing a blog. At any given time, we should be able to answer qu

原创 WEB-控件目錄

1、文件上傳: http://www.chinaz.com/free/2013/0409/298937.shtml 2、富文本框: 3、表格 4、樹 5、

原创 鏈接收藏

Sublime Text 全程指南http://zh.lucida.me/blog/sublime-text-complete-guide/ 實用的sublime插件集合 – sublime推薦必備插件h

原创 My97DatePicker控件顯示時分秒

方式一:  Js代碼   if (!WebCalendar.timeShow) WebCalendar.dateReg = /^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/;   else WebCal

原创 Node.js 模塊之【passport】第三方【Github】鑑權(二)

1. 安裝模塊 npm i connect-mongo --save-dev npm i passport --save-dev npm i passport-github --save 2. 引入模塊及其他依賴模塊 var sessio