原创 cocoscreator使用webview實現安卓apk掃碼登錄

const {ccclass, property} = cc._decorator; @ccclass export default class WebViewLoginCtrl extends cc.Component{ @

原创 【TypeScript學習之旅】重塑“類型思維”

js前端開發的短板之一:長期在沒有類型約束的環境下開發,造成類型思維的缺失,養成不良的編程習慣。 typescript三個要點: 1、靜態類型檢查:在編譯代碼時,進行嚴格的靜態類型檢查,意味着在編碼階段發現可能存在的隱患而不必把隱患帶到線

原创 [轉載]Understanding JavaScript Function Invocation and "this"

深入理解js中的this Over the years, I've seen a lot of confusion about JavaScript function invocation. In particular, a lot of

原创 關於cocoscreator的button組件

    this.on觸發的點擊事件不能完全模擬button組件,所以當button.node.active 設置爲false時,該節點的過渡效果會被中斷,導致按鈕顯示的狀態可能不對。    解決辦法:需要的地方加入代碼: