标签: ios swift nsattributedstring
我注意到NSAttributedString支持通过NSHTMLTextDocumentType进行HTML呈现。 NSAttributedString是否会呈现JavaScript?我在文档中找不到任何关于它的提及。
NSAttributedString
NSHTMLTextDocumentType
答案 0 :(得分:2)
不,您无法使用javascript呈现NSAttributedString。您仅限HTML!正如您所说,您没有找到任何有关文档的内容,这是因为NSAttributedString不支持javascript!
javascript
HTML