學習
引擎資料類型
Secret

*此內容是使用 AI(Beta 測試版)翻譯,可能含有錯誤。若要以英文檢視此頁面,請按一下這裡


概要
方法
範例程式碼
秘密
local HttpService = game:GetService("HttpService")
local mySiteApiKey = HttpService:GetSecret("my_site")
local url = "https://apis.mysite.com?apiKey="
local urlWithKey = mySiteApiKey:AddPrefix(url)
local params = "&request=join&user=myname"
local resultingUrl = urlWithKey:AddSuffix(params)

API 參考
方法
AddPrefix
Secret:AddPrefix(prefix:string):Secret
參數
prefix:string
返回

AddSuffix
Secret:AddSuffix(suffix:string):Secret
參數
suffix:string
返回

©2026 Roblox Corporation、Roblox、Roblox 標誌及 Powering Imagination 是我們在美國及其他國家地區的部分註冊與未註冊商標。