原创 win10下安裝nodejs

nodejs官網:https://nodejs.org/en/ download:下載最新版msi 安裝msi cmd下運行:         node -v             v5.10.1         npm -v    

原创 mac sublime 2 常用快捷鍵

//增 cmd+ n cmd + shift + n //刪 cmd + x //改 cmd + option + f  // 替換 control + cmd + 方向鍵上   //上移一行 control + cmd + 方向鍵下

原创 nginx 版本

nginx官網: http://nginx.org/ nginx三種版本: Mainline version         新版本 Stable version             穩定版(推薦版本) Legacy versions

原创 賦值表達式

1.賦值表達式返回值爲該賦值值    function t(){       return a = 3 ;    }   t() // 3 2.賦值語句的結合順序是從右到左   var b = a = 3  <=> var b = (a

原创 階乘之遞歸寫法

var factorial = ( function(){       var cacheList = [1] ;  // 緩存計算過的值       return function( n ){             return ca

原创 mac壓縮與解壓縮

unzip -d destination source zip -r destination source

原创 常見運算符優先級

       ,        =         ||        &&       === !== ==       + ,  -       * , /       ! , ++  ,  --        ()

原创 Windows10下80端口被PID爲4的System佔用導致Apache無法啓動的分析

Windows10下80端口被PID爲4的System佔用導致Apache無法啓動的分析

原创 win10安裝nginx

1.download 2.解壓 3.運行nginx,一閃而過 4.打開localhost,顯示404 排查問題: cmd下切換到nginx目錄運行nginx,報錯: nginx: [emerg] bind() to 0.0.0.0:80

原创 innerHTML

innerHTML 一定要記得後面的HTML是大寫的,可以執行HTML渲染,在處理字符串換行很有用處: 例如:後臺返回信息:1.this is s dddd;2.this is ssss;3.this is kkkk;          

原创 javascript dom 操作

1. 查詢   document.getElementById()   document.getElementsByTagName()   //下面的api有兼容性問題   document.getElementsByName()  

原创 刪除cookie快捷鍵

ctrl / cmd + shift + delete 點贊 收藏 分享 文章舉報 mellicapen 發佈了66 篇原創文章 · 獲贊 5 · 訪問量 9萬+ 私信

原创 mac 鎖屏

快捷鍵 : option + command + 電源鍵                 ctrl + shift + 電源鍵  點贊 收藏 分享 文章舉報 mellicapen

原创 nginx配置優先級

(location =) > (location 完整路徑 ) > (location ^~ 路徑) >  (location ~* 正則) > (location 路徑) ^~  以..開頭 ~* 不區分大小寫 點贊

原创 dom

1.元素節點有tagName 、nodeName 、localName屬性;其中tagName 、nodeName相同,都是大寫,localName是小寫;    其他節點只有nodeName 、localName屬性,其中屬性節點loc