我需要在斜体字段中编写动态文本字段的某些部分。假设我想在斜体上写"文本"。我该怎么做?
this.instance_name.text = "This is some text.";
未测试" it's a html5 animation
" ,但您可以尝试使用textField
的HTMLTEXT属性:
this.instance_name.htmlText = "This is some <i>text</i>.";