npm使用詳解(下)
body
body>*:first-child
body>*:last-child
p, blockquote, ul, ol, dl, table, pre
h1, h2, h3, h4, h5, h6
h1 tt, h1 code, h2 tt, h2 code, h3 tt, h3 code, h4 tt, h4 code, h5 tt, h5 code, h6 tt, h6 code
h1 h2
h3 h4
h5 h6
body>h2:first-child, body>h1:first-child, body>h1:first-child+h2, body>h3:first-child, body>h4:first-child, body>h5:first-child, body>h6:first-child
a:first-child h1, a:first-child h2, a:first-child h3, a:first-child h4, a:first-child h5, a:first-child h6
h1+p, h2+p, h3+p, h4+p, h5+p, h6+p
a a:hover
ul, ol
ul li>:first-child, ol li>:first-child, ul li ul:first-of-type, ol li ol:first-of-type, ul li ol:first-of-type, ol li ul:first-of-type
ul ul, ul ol, ol ol, ol ul
dl dl dt
dl dt:first-child
dl dt>:first-child
dl dt>:last-child
dl dd
dl dd>:first-child
dl dd>:last-child
pre, code, tt
code, tt
pre>code
pre
pre code, pre tt
kbd
blockquote
blockquote>:first-child
blockquote>:last-child
hr img
在瀏覽本文之前,建議您先瀏覽《npm使用詳解(上)》
1、access
2、adduser
//用於啟動在指定的git倉庫新增使用者的嚮導
npm adduser [--registry=url] [--scope=@orgname] [--always-auth]
//eg:
npm adduser --registry=
3、bin//列印出npm執行安裝的資料夾
npm bin
4、bugs//檢視某個包的issue列表
npm bugs //eg:(將會用瀏覽器開啟
npm bugs del
// 可以直接在乙個包的資料夾中執行無引數的命令,將自動開啟該包的issue列表
//eg:(在del資料夾下執行cmd)
npm bugs
5、build
6、bundle(已過期)
7、completion
8、dedupe
//
npm dedupe [package names...]
//可簡化為如下呼叫
npm ddp [package names...]
9、deprecate//為指定版本的包新增過期警告
npm deprecate [@] // eg:
npm deprecate my-thing@"< 0.2.3" "critical bug fixed in v0.2.3"
10、dist-tagnpm dist-tag add @
npm dist-tag rm npm dist-tag ls
11、docs//開啟包的文件頁面
npm docs [[...]]
npm docs (with no args in a package dir)
// 開啟包的首頁readme
npm home [[...]]
npm home (with no args in a package dir)
12、editnpm edit [@]
13、explorenpm explore [ -- ]
14、help//開啟本地npm的幫助檔案
npm help npm help some search terms
//eg:(開啟config的本地幫助)
npm help config
15、help-search//從npm的markdown文件中查詢所有的term,並展示
npm help-search some search terms
16、linknpm link (in package folder)
npm link [@/]npm ln (with any of the previous argument usage)
17、logout//從指定的倉庫登出
npm logout [--registry=url] [--scope=@orgname]
18、ls//列舉當前資料夾下的所有包
npm list [[@/]...]
npm ls [[@/]...]
npm la [[@/]...]
npm ll [[@/]...]
19、npmnpm [args]
20、outdated(☆☆☆☆☆)//檢查當前資料夾中的包版本(當前,需要,最新)
npm outdated [[...]]
21、owner//管理包的擁有者
npm owner ls npm owner add npm owner rm
22、pack(☆☆☆☆☆)//壓縮包資料夾
npm pack [[...]]
//eg:在del目錄中直接執行
npm pack
//或者在專案目錄中,執行
npm pack del
23、prefix//列印本地字首到控制台,如果-g,則列印全域性的字首
24、prune(☆☆☆☆☆)//刪除多餘的包(如果指定包名,則刪除指定的包)
npm prune [[[25、publish//發布包
npm publish [--tag ] [--access ]
npm publish [--tag ] [--access ]
26、rebuild//重新編譯包
npm rebuild [[...]]
npm rb [[...]]
27、repo//在瀏覽器中開啟包的倉庫位址
npm repo npm repo (with no args in a package dir)
28、restart//重新啟動包
npm restart [-- ]
29、rm//移除包
npm rm npm r npm uninstall npm un
30、root//列印node_modules資料夾到控制台
npm root
31、run-script//執行任意的包指令碼
npm run-script [command] [-- ]
npm run [command] [-- ]
32、search
33、shrinkwrap
34、star
//給指定的包加star
npm star [, ...]
npm unstar [, ...]
35、stars//檢視指定使用者的stars
npm stars
npm stars [username]
36、start
37、stop
38、tag
39、test
40、unpublish
41、version
npm version [| major | minor | patch | premajor | preminor | prepatch | prerelease]
//檢視專案相關資訊
npm version
npm version major
42、view
43、whoami
for命令詳解(下)
五,for f 用法for f options variable in file set do command for f options variable in string do command for f options variable in command do command 或者,如果...
form元件詳解下
一 ext.form.field.hidden 隱藏字段,不展示,但是其值提交 ext.onready function 七 ext.form.field.file 上傳檔案,由於沒有後台,只能展示前台效果。submit提交後,可以在後台接受。ext.onready function ext.qui...
Java泛型詳解(下)
假設現在有乙個類employee和它的子類manager 現在問題來了 pair是pair的子類嗎?答案是 不是 例如,下面的 將不會編譯成功 manager tophonchos pairresult arrayalg.minmax tophonchos error minmax方法返回pair,...