sbArticlesJson.Append("{");sbArticlesJson.Append("\"thumb_media_id\":\""+media_id+"\",");sbArticlesJson.Append("\"author\":\""+dr["Author"].ToString()+"\",");sbArticlesJs...
sbArticlesJson.Append("{");
sbArticlesJson.Append("\"thumb_media_id\":\"" + media_id + "\",");
sbArticlesJson.Append("\"author\":\"" + dr["Author"].ToString() + "\",");
sbArticlesJson.Append("\"title\":\"" + dr["Title"].ToString() + "\",");
sbArticlesJson.Append("\"content_source_url\":\"" + dr["TextUrl"].ToString() + "\",");
sbArticlesJson.Append("\"content\":\"" + dr["Content"].ToString() + "\",");
sbArticlesJson.Append("\"digest\":\"" + dr["Content"].ToString() + "\",");
if (i == dt.Rows.Count - 1)
{
sbArticlesJson.Append("\"show_cover_pic\":\"1\"}");
}
else
{
sbArticlesJson.Append("\"show_cover_pic\":\"1\"},");
}
--------------------
如果content是富文本,则多条图文只能展示一条且输入的内容不展示。
纯文本则可以,是不是因为包含富文本双引号的原因?
展开