查看: 160|回复: 0

[ASP入门] 经典ASP快速连接数组/集合中元素的函数Join

[复制链接]
xuanxiao 发表于 2023-6-1 18:04:13 | 显示全部楼层 |阅读模式
  1. Dim strJsons, Result
  2. Dim objDict

  3. Set objDict = CreateObject("scripting.dictionary")
  4.     objDict.Add "{",True
  5.     objDict.Add """touser"":"""& OPENID &"""," & vbNewLine ,True
  6.     objDict.Add """template_id"":"""& TempID &""",",vbNewLine
  7.     objDict.Add "}",vbNewLine

  8. strJsons= Join(objDict.name, vbNewLine)

  9. Set objDict =Nothing
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表

在线客服

售前咨询
售后咨询
服务热线
023-58418553
微信公众号