此主题相关图片如下:企业微信截图_17127306117283.png
图片为企业微信机器人格式,
下面我生成的\n 显示成双斜杠,这个应该如何编写?
{
"msgtype": "markdown",
"markdown": {
"content": "test,\\n > 内容。"
}
}
Dim jo As New JObject
jo("msgtype") = "markdown"
jo("markdown") = New JObject
jo("markdown")("content") = "tee,\n > 内容"
hc.Content = jo.ToString
Output.Show(hc.Content)
试试
jo("markdown")("content") = "tee," & chr(10) &" > 内容"
或者
jo("markdown")("content") = "tee," & vblf &" > 内容"