https://hackershare.dev/en/bookmarks/801450
Swift 函数派发方式