我在 json 檔案的一個字串中有一個長文本。我想將該文本中的某些單詞加粗。
我該怎么做?
示例.json 檔案:
{
"local_id": "82",
"local_title": "He is Lord",
"local_hint": "He is Lord",
"local_text": "He is Lord, He is Lord\nHe is risen from the dead and He is Lord\nEvery knee shall bow,\nevery tongue confess\nThat Jesus Christ is Lord.",
"local_category": "nothing",
"local_categorycount": "1"
}
uj5u.com熱心網友回復:
JSON 只存盤純文本,它不格式化文本,如果你想讓 JSON 物件中的資料在 UI 中顯示為粗體或彩色,你需要從前端處理。
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/429728.html
上一篇:在Java中使用atlassian的RESTAPI創建Jira問題時決議Json物件節點時出錯
下一篇:ArrayList<Course>型別中的方法add(Course,Object[],int)不適用于引數[Java]
