原创 如何利用git hooks進行遠程服務器代碼同步

適用場景:本地開發,進行代碼更改後希望服務端(遠端)代碼同步更改. 先了解一些概念: Git目錄 與 工作目錄 Git目錄是爲你的項目存儲所有歷史和元信息的目錄 - 包括所有的對象(commits,trees,blobs,tags),

原创 微信小程序在使用npm引入redux時,thirdScriptError sdk uncaught third Error process is not defined 錯誤解決辦法

具體的引入步驟我就不多說了,如果你要是出現了thirdScriptError   sdk uncaught third Error   process is not defined 的錯誤,很明顯,是process這裏出了錯,最簡單粗暴的

原创 二叉樹中查找值爲x的結點,打印x結點的全部祖先

二叉樹中查找值爲x的結點,打印x結點的全部祖先 int PrintAncestors(PBinTree root, int x) { if (!root) return 0; if (root->data == x)