ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# Body `Get|Let|Set {Variant}` `Get`\-使用`RequestFormat`或`CustomRequestFormat`将正文值转换为字符串 `Let`\-使用`String`字符串或`Array`数组 `Set`\-使用`Collection`集合,`Dictionary`字典或Object对象 ~~~ Dim Request As New WebRequest Request.RequestFormat = WebFormat.Json '// Let: String|Array Request.Body = "text" Request.Body '// = "text" Request.Body = Array("A", "B", "C") Request.Body '// = "\["A","B","C"\]" '// Set: Collection|Dictionary|Object Dim Body As Object Set Body = New Collection Body.Add "Howdy!" Set Request.Body = Body Request.Body '// = "\["Howdy!"\]" Set Body = New Dictionary Body.Add "a", 123 Body.Add "b", 456 Set Request.Body = Body Request.Body '// = "{"a":123,"b":456}" ~~~