原创 threejs 繪製一個盒子的實現和虛線

base.csshtml,body{     position:relative;     height:100%; } body { margin: 0; } canvas { width: 100%; height: 100% } ul

原创 linux spring boot 發佈腳本整理

start.shclasspath=$(ls lib/* | sed ':a;N;s/\n/:/;ta;') classpath=".:main.jar:$classpath" #echo $classpath nohup java -cl

原创 window 環境 spring boot 發佈腳本整理

@setlocal enabledelayedexpansion @set classpath=. for %%i in (lib\*.jar) do @set classpath=!classpath!;%%i @set classpa

原创 js-yaml簡單使用

安裝 js-yamlnpm install js-yamlindex.jslet fs = require("fs"); let content = fs.readFileSync("text.yaml",{encoding:"utf8"}

原创 simple webpack 腳手架初稿

npm install 以下模塊package.json{   "name": "webpack-scaffold",   "version": "1.0.0",   "description": "",   "main": "index.

原创 sui picker,datetimepicker,citypicker代碼整理

將sui中的sm.js sm.css 整理拆分刪除了大量代碼整理出來。picker.csspicker.jsdatetimepicker.jscity-picker.js附件:http://down.51cto.com/data/24379

原创 dubbo初探一之hello world

pom.xml<dependencies>     <dependency>         <groupId>com.alibaba</groupId>         <artifactId>dubbo</artifactId>    

原创 dubbo初探二之簡單搭建zookeeper註冊中心

jdk須爲1.7pom.xml<dependency>     <groupId>com.netflix.curator</groupId>     <artifactId>curator-framework</artifactId>   

原创 zookeeper初探二 windows環境搭建僞集羣

在conf目錄下創建 zoo1.cfg,zoo2.cfg,zoo3.cfgzoo1.cfgtickTime=2000 initLimit=10 syncLimit=5 dataDir=E:\\ProgramFiles\\zookeeper-

原创 webpack與babel解析module.exports差異

來來來代碼先上js/main.jsimport * as aliasPerson from "./person.js"; import defaultPerson from "./person.js"; console.log("alias

原创 js 簡單實現 LFU

/* ======================================== LFU 最近最少使用 ======================================== */ function LFUCache(lim

原创 zookeeper初探一

1.下載zookeeper https://www.apache.org/dyn/closer.cgi/zookeeper/2. 配置 zoo.cfg添加配置如下(windows配置環境)tickTime=2000 dataDir=E:\\

原创 ckeditor 簡單使用

<!DOCTYPE html> <html> <head lang="en">     <meta charset="UTF-8">     <title>CK editor</title>     <script src="js/cked

原创 js 簡單實現FIFO

/* ======================================== LRU 最近最少使用 ======================================== */ function FifoCache(l

原创 nodejs 基礎

npm install --global xxx 屬於全局安裝npm install xxx 屬於本地安裝npm config set cache "D:\Program Files\nodejs\node_cache" 設置緩存文件夾np